Discussion Locked

how to update linux that has no internet

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi
i am using linux RHEL5.4 in vmware. i learn that it is possible to using "yum" that is offline. can any one help me to use yum install from an iso file that is mounted in linux with package manager?

6 replies

by charliespencer

Those are about as useful to a Linux newbie as a Chilton manual to a student driver. The information may be technically accurate, but the audience likely doesn't have the requisite knowledge to make use of it.

by pejardine

First create a local repo on a machine that has internet access. This machine must be connected to RHN. Then point your secure servers to that local repo for updates.

by pejardine

#!/bin/sh
reposync -p /localrepo/ --repoid=rhel-x86_64-server-5 -l
if [ $? -eq 0 ]
then
echo "reposync completed successfully!"
perl /root/repomail.pl reposync success
else
echo -e "reposync failed!"
perl /root/repomail.pl reposync failure
fi
createrepo /localrepo/
if [ $? -eq 0 ]
then
perl /root/repomail.pl createrepo success
else
perl /root/repomail.pl createrepo failure
fi

by pejardine

Your next step is to create FTP or HTTP access to your local repo. Simply install vsftpd on your server and then specify your local repo location as the ftp root. Configure your firewalls to allow ftp access to the server.

by charliespencer

It's easier to update it with a web connection than with DVDs you've got in your hand. What's up with that? I remember hassling with attempting to set up a local repository a few years ago. That exercise was one of the reasons my last look at Linux was ... my last.

This discussion is closed to new replies.