General discussion

Locked

how to update linux that has no internet

By shahibd ·
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?

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Update to newer than what was on the ISO?

by seanferd In reply to how to update linux that ...

No. Unless you have a newer ISO than what you had originally installed.

http://www.google.com/search?&q=man+yum

Collapse -

Aw, c'mon; man pages? Really?

by CharlieSpencer In reply to Update to newer than what ...

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.

Collapse -

Yes. It is easy.

by pejardine In reply to how to update linux that ...

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.

Collapse -

My local repo code

by pejardine In reply to how to update linux that ...

#!/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

Collapse -

Your next step

by pejardine In reply to how to update linux that ...

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.

Collapse -

This has long been one of my issues with Linux.

by CharlieSpencer In reply to how to update linux that ...

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.

Back to Software Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums