Linux – the rpm files after installation using yum

redhat-enterprise-linuxrpmyum

I'm using Red Hat 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.

Best Answer

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

They should be there unless you have some kind of autocleanup going on. If you do, try this command:

find /var/cache/yum -iname '*.rpm' –

If there's nothing there, 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.

Related Question