Monday 4 August 2014

Configure Yum repository in Linux

Create a folder in the server.

mkdir -p /var/ftp/pub/Server

Copy all RPMs from Linux DVD to Here.

Create the base repository headers:

cd /var/ftp/pub/Server/
rpm –ivh createrepo*

Paste database file to /tmp location

cd repodata/
cp comps* /tmp/comps.xml

Create repository

createrepo –g /tmp/comps.xml /var/ftp/pub/Server

Add your local repo to the list

cd /etc/yum.repos.d/
rm *
touch server.repo

Edit the File server.repo:

[server]
name= My Local Repo
baseurl=file:///var/ftp/pub/Server
enabled=1
gpgcheck=0

1 comment:

  1. Jadwal Daftar Sabung Ayam SV388 15 Februari 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Jumat, Banten 15 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete