Here is the short man of RPM.

1. Install a RPM package
rpm -ivf pidgin.rpm

2. Update a RPM with package file
rpm -Uvf pidgin.rpm

3a. Query a RPM package (installed)
rpm -qi pidgin

3b. List package contents
rpm -ql pidgin

3c. Query a RPM package (file)
rpm -qpi pidgin.rpm

4. Remove a RPM package (installed)
rpm -evf pidgin.rpm

5. Figure out to which RPM package a file belongs to
rpm -qf <Path+Filename>; e.g. rpm -qfi /lib/libc.so.6

For rest, it's the "man rpm" which I visit every now and then :-)


Cheers,
Imtiaz


On 10/30/07, Emon <[EMAIL PROTECTED]> wrote:
>
> On 10/29/2007 04:28 PM, Imtiaz Rahi wrote:
> >
> >
> > For example, you are trying to uninstall pidgin.
> > Both RPM and DEB package manager will remove that package and will
> ask/halt
> > you if any other package is dependent on pidgin. So, you will have to
> either
> > first remove packages dependent on pidgin and then pidgin or do them in
> same
> > uninstall command.
> >
>
> Thank for the info Imtiaz vhai & especially thanks lot for the 10.3 DVD
>
> > But none of them will remove the packages which were installed for
> pidgin's
> > dependency (on which pidgin is dependent and may be more others).
> > You will have to find them and remove them manually.
> >
>
> Humm... so you are saying it's the same with Debian pkg managers
>
> All right, so how do I remove the pkgs manually, wasn't there a command
> like
>
> rpm -qr
>
> doesn't seem to be working in my case, here is the situation
>
> ***************************
> [EMAIL PROTECTED]:~> rpm -qr
> -qr: missing argument
> [EMAIL PROTECTED]:~> rpm -qr pidgin
> rpm: arguments to --root (-r) must begin with a /
> [EMAIL PROTECTED]:~> rpm -qr /pidgin
> rpm: no arguments given for query
> [EMAIL PROTECTED]:~> whereis pidgin
> pidgin: /usr/bin/pidgin /usr/lib/pidgin /usr/bin/X11/pidgin
> /usr/share/man/man1/pidgin.1.gz
> [EMAIL PROTECTED]:~> rpm -qr /user/bin/pidgin
> rpm: no arguments given for query
> [EMAIL PROTECTED]:~>
> ***************************
>
> So... what am I doing wrong
>
> thanks
> Emon
>
>


[Non-text portions of this message have been removed]

Reply via email to