Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

redhat 5.4.

I have installed a package using yum the package was wireshark.

However, after it has installed. Where can I find the rpm package?

I would like to locate the actual wireshark.rpm package so that I can install it on another machine that is not connected to the Internet.

Many thanks,

share|improve this question

3 Answers 3

up vote 5 down vote accepted

Take a look under /var/cache/yum directory.

share|improve this answer
    
I looked in the following directory /var/cache/yum/rhn-tools-rhel-i386-server-5/packages There was no rpm's. Thanks –  ant2009 Aug 3 '10 at 7:10
    
They should be there unless you have some kind of autocleanup going on. Try this command: find /var/cache/yum -iname '*.rpm' –  Janne Pikkarainen Aug 3 '10 at 7:12
    
Sorry, just ran that command. Nothing. Could yum have removed the rpm packages right after yum finished? –  ant2009 Aug 3 '10 at 7:18
    
Yeah, most likely so. See the cachedir variable in /etc/yum.conf and check out what's the current directory for storing packages. It can also be that tmpwatch or some other daily cron cleanup has cleared the /var/cache/yum. –  Janne Pikkarainen Aug 3 '10 at 8:13
    
Thanks for your help. This is my yum.conf. Anything should I change? cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 # Note: yum-RHN-plugin doesn't honor this. metadata_expire=1h –  ant2009 Aug 3 '10 at 8:47

The rpm cache directory location can be found in /etc/yum.conf

cachedir=/var/cache/yum/$basearch/$releasever

You should change the $basearch and $releasever, values based on your red hat release version.

If you want to keep the rpm cache after installation the keep cache value should be set 1 in:

/etc/yum.conf

set

keepcache=1
share|improve this answer

You also can install the download only plugin for yum which causes the rpms to be downloaded to the cache directory but not installed.

yum install yum-plugin-downloadonly

Then use it with the --downloadonly flag.

yum install --downloadonly -y wireshark

Then you will find the rpms in the cache directory as set by your /etc/yum.conf

e.g cachedir=/var/tmp/yum/cache/$basearch/$releasever

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.