Skip to main content
  1. Install create repo

    Install create repo

     # cd /media/(dvd-label) # cd /Packages # rpm -ivh createrepo*.rpm 
  2. Copy all contents from dvd or just the packges

    • If whole dvd is copied, no need to run createrepo. Because repository is inbuilt in dvd. (To check, see if there is a repodata directory)

    • If package dir is only copied, run

       # createrepo <dir where the packages are copied> 
  3. Create yum repo file:

     vim dvd.repo [packages] name=packages baseurl=file://<dir where the packages are copied> enabled=1 gpgcheck=0 +++++++++++++++++++++++++++++++++++++++++ [packages] -- Give a name, any name name=packages -- description for above baseurl -- location where rpms are available enabled=1 -- to enable this repo gpgcheck=0 -- not to check for GPG license file 

cd /media/(dvd-label)

cd /Packages

#rpm -ivh createrepo*.rpm 2. Copy all contents from dvd or just the packges i) If whole dvd is copied, no need to run createrepo. Because repository is inbuild in dvd. (To check, see if there is a repodata directory) ii) If package dir is only copied, run #createrepo 3. Create yum repo file vim dvd.repo [packages] name=packages baseurl=file:// enabled=1 gpgcheck=0 +++++++++++++++++++++++++++++++++++++++++ [packages] -- Give a name, any name name=packages -- description for above baseurl -- location where rpms are available enabled=1 -- to enable this repo gpgcheck=0 -- not to check for GPG license file

  1. Install create repo

cd /media/(dvd-label)

cd /Packages

#rpm -ivh createrepo*.rpm 2. Copy all contents from dvd or just the packges i) If whole dvd is copied, no need to run createrepo. Because repository is inbuild in dvd. (To check, see if there is a repodata directory) ii) If package dir is only copied, run #createrepo 3. Create yum repo file vim dvd.repo [packages] name=packages baseurl=file:// enabled=1 gpgcheck=0 +++++++++++++++++++++++++++++++++++++++++ [packages] -- Give a name, any name name=packages -- description for above baseurl -- location where rpms are available enabled=1 -- to enable this repo gpgcheck=0 -- not to check for GPG license file

  1. Install create repo

     # cd /media/(dvd-label) # cd /Packages # rpm -ivh createrepo*.rpm 
  2. Copy all contents from dvd or just the packges

    • If whole dvd is copied, no need to run createrepo. Because repository is inbuilt in dvd. (To check, see if there is a repodata directory)

    • If package dir is only copied, run

       # createrepo <dir where the packages are copied> 
  3. Create yum repo file:

     vim dvd.repo [packages] name=packages baseurl=file://<dir where the packages are copied> enabled=1 gpgcheck=0 +++++++++++++++++++++++++++++++++++++++++ [packages] -- Give a name, any name name=packages -- description for above baseurl -- location where rpms are available enabled=1 -- to enable this repo gpgcheck=0 -- not to check for GPG license file 
Source Link

  1. Install create repo

cd /media/(dvd-label)

cd /Packages

#rpm -ivh createrepo*.rpm 2. Copy all contents from dvd or just the packges i) If whole dvd is copied, no need to run createrepo. Because repository is inbuild in dvd. (To check, see if there is a repodata directory) ii) If package dir is only copied, run #createrepo 3. Create yum repo file vim dvd.repo [packages] name=packages baseurl=file:// enabled=1 gpgcheck=0 +++++++++++++++++++++++++++++++++++++++++ [packages] -- Give a name, any name name=packages -- description for above baseurl -- location where rpms are available enabled=1 -- to enable this repo gpgcheck=0 -- not to check for GPG license file