LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2013, 01:02 AM   #1
slowerogue
Member
 
Registered: Oct 2012
Posts: 96

Rep: Reputation: Disabled
yum cache packages doesnt have .rpm


hi guys,
i have /etc/yum.conf keepcache=1,
and then i run yum clean all.
then i install several rpm using
#yum install aa bb cc dd ee
and it install along with other dependencies
but when i go to /var/cache/yum/x/packages
it doesnt have any files inside

have i done something wrong? please advise
thanks
 
Old 12-16-2013, 03:45 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
type command below, does it show any installed repos?

Quote:
yum repolist all
 
Old 12-16-2013, 04:14 AM   #3
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by slowerogue View Post
but when i go to /var/cache/yum/x/packages it doesnt have any files inside
Directory packages should be in its respective repository name directory. Your packages directory seems misplaced. For example, in my case..

Code:
# yum repolist
repo id		repo name		status
rhel64		Local Repo		3,720
repolist: 3,720

# yum install finger

# ll /var/cache/yum/x86_64/6Server/rhel64/packages/
-rw-r--r--. 1 root root 22K Aug 17  2010 finger-0.17-39.el6.x86_64.rpm
 
Old 12-18-2013, 01:06 AM   #4
slowerogue
Member
 
Registered: Oct 2012
Posts: 96

Original Poster
Rep: Reputation: Disabled
hi guys,
these are my result
Quote:
[root@localhost ~]# cat /etc/yum.conf
[main]
#cachedir=/var/cache/yum/$basearch/$releasever
cachedir=/var/cache/yum/localrepo/
keepcache=1


[root@localhost ~]# yum install finger -y
Loaded plugins: downloadonly, product-id, refresh-packagekit, security,
: subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository rhel-source-beta is listed more than once in the configuration
lr | 4.0 kB 00:00 ...
lr/primary_db | 3.1 MB 00:00 ...
lrHA | 4.0 kB 00:00 ...
lrHA/primary_db | 43 kB 00:00 ...
..
..
Running Transaction
Installing : finger-0.17-39.el6.x86_64 1/1
Installed products updated.
Verifying : finger-0.17-39.el6.x86_64 1/1

Installed:
finger.x86_64 0:0.17-39.el6

Complete!



[root@localhost ~]# ll /var/cache/yum/localrepo/lr/packages/
total 0
but i use this to solve my problem
#yumdownloader --resolve --destdir=/bnmrpm/ xxx.rpm

Last edited by slowerogue; 12-18-2013 at 01:08 AM.
 
  


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
How to force yum and rpm install only current archetecture match packages Rodnower Linux - Software 8 08-14-2010 12:29 PM
Difference of using RPM and YUM in updating packages dwong05 Linux - Newbie 4 04-12-2009 08:19 PM
Yum update conflicts when there is both i386 and x86_64 rpm packages installed. zimon Fedora 2 10-09-2008 06:30 AM
How does yum (or rpm or other pm) update/upgrade in use packages engineman Linux - Software 2 09-26-2007 12:06 PM
Can rpm/yum uninstall conflicting packages automatically? Akhran Red Hat 1 04-09-2007 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:42 PM.

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