rpm -qlf somefile will list all the files owned by a package too. You don't need to do it on every file.
[luis.cer...@houts38 ~]$ rpm -qlf /etc/redhat-release /etc/issue /etc/issue.net /etc/pki/rpm-gpg /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-auxiliary /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-former /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-rhx /etc/redhat-release /etc/yum.repos.d/rhel-debuginfo.repo /usr/share/doc/redhat-release-5Server /usr/share/doc/redhat-release-5Server/EULA *****SNIP**** -----Original Message----- From: Ryan Golhar <[email protected]> Reply-To: [email protected], linux clustering <[email protected]> To: linux clustering <[email protected]> Subject: Re: [Linux-cluster] How to extract an rpm for use on another server? Date: Mon, 20 Apr 2009 15:15:06 -0400 If you don't have the rpm, you'll have to do a 'rpm -qf ...' on every file on your system to determine which one belong to VMware. Try this perl script: #!/usr/bin/perl foreach $file (`find / -type f`) { $_ = `rpm -qf $file`; if ($_ =~ m/VMware/) { print "$file ... $_\n"; } } sunhux G wrote: > Hi, > > > I've just installed an rpm ( VMWare-esx-vmx-3.5.0-158869.i386.rpm ) > and this caused the entire ESX/VMWare to panic/crash whenever a > VM in this VMWare is started. > > I've just done "rpm -e --nodeps -allmatches VMware-esx-vms-3.5.-158869) > and would like to put back the old rpm 64607 : > > VMWare-esx-3.5.0-64607 > > > However, I could not find 64607 from anywhere (requires a code), so I'll > need to extract this 64607 rpm from my other ESX servers : is this possible > & what's the command. > > If it's not possible to build the 64607 rpm from an existing ESX which has > not been patched yet, appreciate if someone can point me to where I could > download it > > > Tks > U > > > > ------------------------------------------------------------------------ > > -- > Linux-cluster mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/linux-cluster -- Linux-cluster mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-cluster Luis E. Cerezo PGS Global Shared Services - IT 281.509.8397 *********** This email and any files contained therein is confidential and may contain privileged information. If you are not the named addressee(s) or you have otherwise received this in error, you should not distribute or copy this e-mail or use any of its content for any purpose. Please notify the sender immediately by e-mail if you have received this e-mail in error and delete it from your system
-- Linux-cluster mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-cluster
