On Fri, 8 Jan 1999, Vincent van't Hoog wrote:
> I have run intro some problems with RPM on my suse 5.3 linux box
> When I install a RPM with rpm -i rpmfilename.rpm everythings OK.
> When I want to query the installed rpm or delete the installed rpm
> (with rpm -e rpmfilename.rpm or wpm -e rpmfilename)
> I got a message saying that it cannot be done since the file is NOT
> installed.
> What's going on? Can somebody help me out with this one?
> I already tried to rebuild the rpm database with rpm --rebuilddb
Hi Vincent.
It's cause of how you are doing it. RPM doesn't grep the name. You have
to hit it right on or you get rejected. For instance, if I install
fetchmail-4.75.rpm I might do: rpm -Uvh fetchmail*rpm and it'll install.
but to REMOVE it I just do rpm -e fetchmail, NOT rpm -e fetchmail.rpm or
rpm -e fetchmail-4.75.rpm. You shouldn't need to rebuilddb as you _do_
have the packages properly installed. It's just in UNINSTALLING or
QUERYING
packages you specify the program name _not_ the extension, usu.
If you ever have doubts about the package name try this:
Say I have a file called grabstat that grabs mailstatistics that I want to
remove and don't know the filename, I just do:
rpm -qa | grep grab
This will give me output of all the files with grab in the name in the
rpmdb and then once I have the nameI can rpm -e grabstat and it's gone.
So, as a rule, to install rpms you specify the fullname.
If you are not in the directory holding the rpm you also include the path.
But to remove or query a package you just specify it's name as I said
above and usually don't need to use it's extension or version number:
again: rpm -Uvh <optional patch>/fetchmail-4.75.rpm ( install me)
and: rpm -e fetchmail ( remove me)
and: rpm -qil fetchmail | more. ( query me . I am installed.)
and: rpm -qipl fetchmail | more ( query me. I am onboard but not
installed. I want to see what I'd be if I _was_installed.)
Hope this helps.
Cheers,
-M
-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html