LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum cache packages doesnt have .rpm (https://www.linuxquestions.org/questions/linux-newbie-8/yum-cache-packages-doesnt-have-rpm-4175488089/)

slowerogue 12-16-2013 01:02 AM

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

JJJCR 12-16-2013 03:45 AM

type command below, does it show any installed repos?

Quote:

yum repolist all

Madhu Desai 12-16-2013 04:14 AM

Quote:

Originally Posted by slowerogue (Post 5081379)
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


slowerogue 12-18-2013 01:06 AM

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


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