Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
The next step would be to update / upgrade / install from your local repository. But that doesn't make much sense if you don't download any security, or other updates from the web that provide bug fixes, newer versions etc... Also, software that isn't available from your DVD image will not be available for installation. Can you indicate the reasons why you want a local repository from DVD instead for example a local mirror of a repository from the web?
OK, now I got understand. You didn't know what exactly to put in the .repo file? I thought you had that already configured. Here's one that I use with RHEL 5.6 and an NFS mounted under /mnt/source. You should be able to substitute the mount points I use for your local directories.
Code:
[rhel-local]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/Server
[rhel-cluster]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/Cluster
[rhel-clusterstorage]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/ClusterStorage
After that run:
Code:
yum update
to see if you've set it up right and yum can connect to your local repository.
I think you're mixing things up. There's a difference between accessing a local repository from your local machine and using yum over the LAN to connect to a local (in your LAN) repository instead of using the internet. If you want your client computers to be able to use yum, you'll have to follow a different approach (HTTP, NFS) to publish your repository on your LAN. If that's what you want to do, do you want to synchronize your repo to one available on the internet (mirror it)?
Thanks a lot for your guidance "EricTRA". Well as you mentioned "using yum over the LAN to connect to a local (in your LAN) repository instead of
using the internet."This is the thing which i have to impliment.
The yum server should get update from internet & the clients computers
which are running fedora should connect to yum server over LAN to download the updation instaed each client directly go to internet which will generate more trafic.
As you say "If you want your client computers to be able to use yum, you'll have to follow a different approach (HTTP, NFS) to publish your repository on your LAN." How can I publish my repository ?
what changes should I do in
Quote:
# vi /etc/yum.repos.d/iso.repo
[My ISO Repository]
baseurl=file:///mnt/iso
enabled=1
You can view a simple diagram which would helpfull to you to reply me.
thanks for a nice link.Well as you mentioned in the post that "you need to configure yum on http or ftp which can be accessed by your clients" for that purpose I have to 1st make a yum server then i should configure apache or ftp server? Technically what you suggest ?
For http you give me the link but for ftp how can i do it ?
I'm quite sure that you'll find whatever answers you need in this HowTo on the CentOS Wiki. Put the idea of using the ISO aside, since it's almost never up to date. Only use the ISO to populate the local repository before synchronizing, that will also save you bandwidth and time. The Wiki article I indicate is for a NFS setup but almost at the bottom of the article there's a link pointing to a howto that configures for HTTP and/or FTP, nl. this one.
thanks for a nice link.Well as you mentioned in the post that "you need to configure yum on http or ftp which can be accessed by your clients" for that purpose I have to 1st make a yum server then i should configure apache or ftp server? Technically what you suggest ?
For http you give me the link but for ftp how can i do it ?
kindly just elabrate it
thanks,
gardenair
Actually I have not tried local mirrors for repositories, even I use the packages in RHEL DVD
So you can simply copy all the packages in any directory which for mine is
thanks all of you for guiding me. I think at the moment i should only focus on the question.Things are mixing up in my mind so will discuss one by one .
At the moment my local repositary is working fine but there are few things which I want to share with you. In the following I try to point it with red text. what are the functionality of these things in creating a local repositary ? like [rhel-cluster] & [rhel-clusterstorage] .There are used which there is a cluster enviroment ?
What gpgcheck=1 means ?
Code:
[rhel-local]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/Server
[rhel-cluster]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/Cluster
[rhel-clusterstorage]
gpgcheck=1
name=Red Hat Linux $releasever - $basearch - DVD
baseurl=file:///mnt/source/ClusterStorage
2- I mount my iso image each time when i turn on my system.To add my iso permently can u help me how can I write in /etc/fstab file so even after reboot I can access my iso image ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.