Offline - download and install rpm packages with all dependencies

Issues related to applications and software problems
Post Reply
anandcit
Posts: 10
Joined: 2017/03/14 03:57:01

Offline - download and install rpm packages with all dependencies

Post by anandcit » 2017/03/14 04:09:33

How do i download rpm packages with all dependencies and make these as a single group packages and finally, how these downloaded packages to be installed in my centos6.5 in offline.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Offline - download and install rpm packages with all dependencies

Post by TrevorH » 2017/03/14 09:26:25

The easiest way to do this is just to set up a local mirror. See https://wiki.centos.org/HowTos/CreateLocalMirror
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pbrax
Posts: 1
Joined: 2017/03/15 14:14:38

Re: Offline - download and install rpm packages with all dependencies

Post by pbrax » 2017/03/15 14:24:49

If you have another CentOS host with connectivity which is identical to the one(s) you want to update, you could alternatively download everything with yum and then move those rpms to your offline boxes.

something like

mkdir /var/centupdate
yum --downloadonly --downloaddir=/var/centupdate update
tar cf /home/cent65update-rpms.tar /var/centupdate

No use in writing more unless this is applicable for you. Hard to know.
If you have a lot of space, you can of course do what TrevorH suggests.
I deal with many hosts from the same origin, so I find it neat to do it like the above.

Regards
Per

anandcit
Posts: 10
Joined: 2017/03/14 03:57:01

Re: Offline - download and install rpm packages with all dependencies

Post by anandcit » 2017/03/21 06:51:03

thanks

Post Reply