[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Package is there/not there



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 01 May 2003 14:58:43 -0400, Bryan Hartwell wrote:

> I have Red Hat 7.3
> I tried to install & uninstall a few packages. After installing I was
> unable to erase the package, as it said it was not installed:
> 
> rpm -vv --erase --test <package>  tells me the package is NOT installed.
> 
> rpm -vv --upgrade --test <package> tells me the package IS installed.
> 
> rpm -vv -q -p -i <package> gives me all the info on the package, and
> tells me it is not  installed.
> 
> I've installed around 4 different packages, and I have this problem with
> all of them. I want these packages off my system so that it doesn't
> behave in unexpected ways. How can I be sure that it's actually there?
> How can I install them later if the system thinks it's already there?

Find out what the package name is. Don't use the file name when
querying the RPM database. I've posted about this to redhat-list
some hours ago in the thread with the subject

  RPM has problems recognizing installed packages

[...]

With RPM, the package name need not be the file name. The real
package name is stored inside the RPM file header. Run something
like the following on the package file

  rpm --query --package file*.rpm --queryformat "%{name}\n"
  
to find out the package name. That's the name used inside the RPM
database. Or take a look at the top of
  
  rpm --query --all --last | less
    
to see what packages you have installed most recently.
   
- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+saP20iMVcrivHFQRAggWAJ4wCfyw/8aKygtCLCst/uHbzh2jmQCdErn7
rP6QFROY/g/YLB3O0uuKIs4=
=pl4l
-----END PGP SIGNATURE-----





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]