LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-01-2011, 01:23 AM   #1
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Rep: Reputation: Disabled
Smile 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...!!
 
Old 07-01-2011, 02:11 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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

Last edited by EricTRA; 07-01-2011 at 02:12 AM.
 
Old 07-01-2011, 02:11 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,265

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
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
 
Old 07-01-2011, 02:23 AM   #4
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by knudfl View Post
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.....
 
Old 07-01-2011, 02:28 AM   #5
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Quote:
Originally Posted by dEnDrOn View Post
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
 
Old 07-01-2011, 02:31 AM   #6
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by EricTRA View Post
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...
 
Old 07-01-2011, 02:33 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,265

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
1) su

2) gedit /etc/yum.conf
 
Old 07-01-2011, 02:36 AM   #8
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by knudfl View Post
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
 
Old 07-01-2011, 02:41 AM   #9
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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!
 
Old 07-01-2011, 02:45 AM   #10
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by colucix View Post
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....
thanks a lot....
 
Old 07-01-2011, 02:47 AM   #11
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora 3.6.11-1.fc17.i686.PAE
Posts: 501
Blog Entries: 12

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by colucix View Post
I would definitively learn vi, anyway!
yes i'll.....thanks...^_^
 
  


Reply

Tags
install, rpm, yum


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"could not saved downloaded data " amritpalpathak Linux - Software 6 04-17-2010 09:47 AM
trying to install latest java downloaded and saved to desktop jakespet Linux - Newbie 11 08-17-2008 01:12 AM
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 07:54 AM
How can I store saved apt-get packages to save redownloading them? colabus Linux - Newbie 9 05-21-2004 11:35 PM
How to install RedHat 7.2,i have downloaded it from internet and saved it on drive c: whepin Linux - Software 6 01-03-2002 10:03 PM


All times are GMT -5. The time now is 07:30 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration