LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02:02 AM   #1
slowerogue
Member
 
Registered: Oct 2012
Posts: 93

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, 04:45 AM   #2
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,104

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

Quote:
yum repolist all
 
Old 12-16-2013, 05:14 AM   #3
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 512

Rep: Reputation: 139Reputation: 139
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, 02:06 AM   #4
slowerogue
Member
 
Registered: Oct 2012
Posts: 93

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 02:08 AM.
 
  


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


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