LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-06-2009, 06:37 PM   #1
schnappy
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Rep: Reputation: 0
Backing up yum rpm's


Hey,
I'm wanting to backup all the packages I've downloaded with yum. But I can't find the RPM's anywhere...

Cheers
 
Old 03-06-2009, 08:40 PM   #2
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
I don't think that those yum installed RPM's are really stored on your PC, at least not as RPM packages. During installation or upgrading the RPM contents are applied, the RPM database updates and depending on your configuration some revision files stored, but not the whole package AFAIK. Keeping them all would take a lot of disk space.

If you want to be able to restore your system to a known state, then you should check out the yum documentation: some people are able to make it reverse packages to earlier versions, including dependency solving.

Arch Linux

Last edited by T74marcell; 03-14-2009 at 01:06 AM.
 
Old 03-07-2009, 03:57 AM   #3
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
According to http://docs.fedoraproject.org/yum/en...-caching.html:
Quote:
By default, yum stores temporary files under the directory /var/cache/yum/, with one subdirectory for each configured repository. The packages/ directory within each repository directory holds the cached packages. For example, the directory /var/cache/yum/development/packages/ holds packages downloaded from the development repository.
EDIT: By the way, make sure you don't miss this:
Quote:
To configure yum to retain downloaded files rather than discarding them, set the keepcache option in /etc/yum.conf to 1:
I have no way of checking that myself right now, unfortunately.

Last edited by Maligree; 03-07-2009 at 04:00 AM.
 
Old 03-08-2009, 03:48 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 Maligree : That is correct, the files are stored in
/var/cache/yum/<reponame>/packages/

Examples
/var/cache/yum/fedora/packages/
/var/cache/yum/updates/packages/
/var/cache/yum/rpmfusion-free/packages/
/var/cache/yum/rpmfusion-nonfree/packages/
/var/cache/yum/rpmfusion-free-updates/packages/
/var/cache/yum/rpmfusion-nonfree-updates/packages/

To keep the packages ( for backup )
1) su
2) gedit /etc/yum.conf
and edit the line 'keepcache=0' to keepcache=1 ( line 3, usually )
as said by @Maligree.

The 'rpmfusion.org repo' : http://rpmfusion.org/Configuration
.....
 
  


Reply



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
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
CentOS-how to save RPM's with YUM? Micro420 Red Hat 6 08-23-2006 10:42 PM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 01:08 PM
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 03:45 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration