LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-03-2012, 03:22 AM   #1
nikunjkondra
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
How to Backup the existing installed packages in CentOS( like aptoncd in Ubuntu)?


Hi ,

Anyway of backing up the existing packages/updates that are installed to reuse them on other computer without having to download from mirrors all the time on each computer everytime?? Its really time consuming and i cant afford for bandwidth for eachtime or on different pc.

We use 'aptoncd' in Debian to do the same.Anything similar in CentOs?? or any method that does the same?

Please suggest any that doesnt showup any dependency issues in this case.

Many Thanks in Advance
 
Old 01-04-2012, 06:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
sounds like you just want a local centos mirror. tools like mrepo or yumdownloader are great for pulling down updates to a machine you own and then just tell all other servers to use that machine as the repo instead of a proper centos.org mirror.

I don't believe there is any existing way to pull out the files from an installed RPM, it just doesn't sound like something you'd actually want to do to me, given the alternatives which are surely preferable. If you installed it from an RPM originally, why would you not want to just keep that original RPM?

Last edited by acid_kewpie; 01-04-2012 at 06:45 AM.
 
Old 01-04-2012, 07:21 AM   #3
nikunjkondra
LQ Newbie
 
Registered: Dec 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi Chris,

Thank you for the suggestion. I will try those tools mentioned. The thing is i did a 'yum update' and all the packages were downloaded and installed automatically and i couldnt find any downloaded rpms after they got installed. I guess it stores them in a temporary location in /var/... and installs them. Now i have another two machines installed with CentOS and need updates installed.

Is there anyway i download all the rpms for in a single shot, save them in a CD/DVD so as to reuse them without any dependency issues? I downloaded few such updates and when tried to install, showed up dependency issues. Will the tools you mentioned satisfy my requirement?
 
Old 01-04-2012, 08:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,406

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
yes, that's what yumdownloader does, and you can also tell yum NOT to delete the RPM's after installation (I'm sure that's in the manpage)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Image from existing installed CentOs tbaror Linux - Newbie 4 04-16-2012 10:48 PM
LXer: Burning Debian packages and repositories to disc with APTonCD and apt-mirror LXer Syndicated Linux News 0 07-03-2007 06:01 PM
How to backup installed packages?? s26c.sayan Arch 2 03-03-2007 03:48 PM
LXer: AptonCD - Create a backup of all the packages you have installed using apt-get LXer Syndicated Linux News 0 11-07-2006 10:33 PM
Ubuntu: What packages installed? endfx Linux - Software 1 05-24-2006 04:26 PM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration