[PLUG] apt vs rpm cheat sheet?

Fedor Pikus fedorp at wv.mentorg.com
Tue Jan 6 12:09:01 UTC 2004


On Tue, 6 Jan 2004, Colin Kuskie wrote:
> list all packages	rpm -qa		apt-cache pkgnames
> package information	rpm -qi		apt-cache showpkg
> install a package	rpm -ivh	apt-get install **
> update package list
> update packages
There is no cheat-sheet because the tools do slightly different things:
rpm is a back-end to apt. rpm operates on installed packages, and package
files which you have downloaded (it can also take a URL, but that only
automates the download). apt operates on the list of package records which
it caches.

So, if you want to know what packages are installed, there is nothing
better than rpm -qa. If you want to know about an installed package,
apt can't do any more than rpm -qi can do (it spits out more information
by default, but you can get all of that with rpm options like --provides
and --requires). However, apt-cache showpkg will do an effective "rpm -qi"
on a package you don't have yet. So if you want to know what would package
X do if you actually installed it, this will tell you.

Similarly, apt-get install will install package and its dependencies from
the repositories it knows about, while rpm -i will install a package from
a file or URL.

So there is no "mapping", you use apt and rpm for different purposes.


>
> ** performs dependency resolution
>
> If not, if people email back with ideas I'd be happy to coallate,
> format(probably as HTML) and re-release them.  We could even include
> yum or other package managers.
>
> Colin
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>

-- 
                                  Fedor G. Pikus
Mentor Graphics Corporation         | Phone: (503) 685-4857
8405 SW Boeckman Road               | FAX:   (503) 685-1239
Wilsonville, Oregon 97070           | http://www.pikus.net/~pikus/




More information about the PLUG mailing list