LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   where are yum downloaded packages saved....?? (http://www.linuxquestions.org/questions/linux-general-1/where-are-yum-downloaded-packages-saved-889307/)

dEnDrOn 07-01-2011 12:23 AM

where are yum downloaded packages saved....??
 
whenever i need to install a thing,i just do "yum install"....
i need to know where all those RPMs are saved for future use...??
i know something about
Code:

var/cache/yum
but i don't find all packages there...
can
Code:

yum.conf
help a bit...??
but i can't find it too...!!:(

EricTRA 07-01-2011 01:11 AM

Hello,

Look in your yum.conf file, do you have by any chance set the keepcache variable to 0? If so, then your packages will be deleted from cache after successful installation. If you want to keep the packages set that variable to 1.

The packages are normally saved to /var/yum/cache in subdirectories that reflect your configured repositories, that is, the name of the subdirectory will be the name you've given to the repository in your .repo files.

Kind regards,

Eric

knudfl 07-01-2011 01:11 AM

The packages will be saved in /var/cache/yum/<repo-name>/packages/

... when you have edited the /etc/yum.conf
from : keepcache=0 to : keepcache=1

dEnDrOn 07-01-2011 01:23 AM

Quote:

Originally Posted by knudfl (Post 4401048)
The packages will be saved in /var/cache/yum/<repo-name>/packages/

... when you have edited the /etc/yum.conf
from : keepcache=0 to : keepcache=1

as i said earlier i knew the method to sort the problem but i can't edit the file without "root" permission....please elaborate how to edit such protected files.....

EricTRA 07-01-2011 01:28 AM

Quote:

Originally Posted by dEnDrOn (Post 4401056)
as i said earlier i knew the method to sort the problem but i can't edit the file without "root" permission....please elaborate how to edit such protected files.....

Hi,

Where did you say that? Nothing found about that problem in your original post. As a regular user you don't have permissions to edit those files, so you either ask your admin to grant you permissions (with sudo for example) or you ask him to make the change. Security exists for a reason.

Kind regards,

Eric

dEnDrOn 07-01-2011 01:31 AM

Quote:

Originally Posted by EricTRA (Post 4401061)
Hi,

Where did you say that?

i actually said that i had the idea of "yum.conf" and the cache where the rpms are stored but i don't know the way to edit yum.conf through terminal...

knudfl 07-01-2011 01:33 AM

1) su

2) gedit /etc/yum.conf

dEnDrOn 07-01-2011 01:36 AM

Quote:

Originally Posted by knudfl (Post 4401064)
1) su

2) gedit /etc/yum.conf

Code:

gedit /etc/yum.conf
output:
Code:

(gedit:9208): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Terminated


colucix 07-01-2011 01:41 AM

Code:

$ su -
# nano /etc/yum.conf

shortcuts are listed in the bottom part of the terminal. Ctrl-X to exit. I would definitively learn vi, anyway! :)

dEnDrOn 07-01-2011 01:45 AM

Quote:

Originally Posted by colucix (Post 4401074)
Code:

$ su -
# nano /etc/yum.conf

shortcuts are listed in the bottom part of the terminal. Ctrl-X to exit. I would definitively learn vi, anyway! :)

yeah.....it worked....:D:D
thanks a lot....:hattip:

dEnDrOn 07-01-2011 01:47 AM

Quote:

Originally Posted by colucix (Post 4401074)
I would definitively learn vi, anyway! :)

yes i'll.....thanks...^_^


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