How to create yum repository locally without having internet connectivity?
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to create yum repository locally without having internet connectivity?
Hello,
I am trying to create local repository of cent os 6.7 but struggling with repositories.
I did following but getting errors. [performed using SU]
- Did mounting of Cent OS 6.7 64bit iso in installed cent os 6.7
- Now created repo under /etc/yum.repos.d
- wrote following details in 'centosdvd.repo'
[customrepo]
name=customrepo
baseurl=file:///home/user/Documents/centos/repodata [also tried to give path till centos]
enabled=1
#yum clean all
#yum install createrepo
Error I am constantly getting as follows = Error: Cannot find a valid baseurl for repo: base
'CentOS-Base.repo' contains all default parameters. I did not touch this file.
Add-on: The machine don't have internet connectivity at all.
Any suggestions how to solve this issue?
Thanks in advance.
Disable the repos in CentOS-Base.repo by adding line enabled=no.
Thanks for quick update.
For a quick work around, I removed all repo's from yum.repos.d & just kept my custom repo.
It worked.
But now the issue is, I am trying to 'yum install createrepo' & the Cent OS dvd don't have deltarpm & python-deltarpm packages :-/
Any solution/work around for this issue?
My recommandation was to disable the CentOS default repos, not to "remove" their /etc/yum.repos.d/*.repo files!
For having a local evolutive local repo, my recommandation is the yum-plugin-local package.
But for installing that you will need an Internet connection and to re enable the deleted CentOS repos.
Let me know if my suggestions are not clear to you.
you can use another machine with the same OS version installed to run yum with downloadonly plugin, then copy the files to your server and install them using yum --localinstall. This way you may get any software to your no-internet-box as you like.
Debian has DVDs to install packages off-line. Just execute the command "apt-cdrom add" while each dvd is mounted, the job is done one at a time, then you can install whatever software you want. Once the dvds are added to the repositories, you just have to mount the dvd that correspond to the package needed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.