

Note that Alien can't work 100% of the time, because rpm and apt are very different.

rpm file in a Debian based system you'll need the program Alien. RPM has since been ported to other operating systems such as IBM's AIX and Novell Netware. RPM was originally designed to be a standalone binary installer for Redhat based GNU/Linux distros (Like Fedora, Mandrake and SUSE). "dpkg -search /etc" will display all packages that have files in etc.

List all remote packages (browse or your other site) Get information about a remote package rpm -qpi Identify the package that owns a file rpm -qf full-path-to fileĭpkg -search any-portion-of-file's-path (2) Remove a package from the system rpm -e pkgname (saves copies of modified config files)ĭpkg -purge pkgname (removes everything)ĭpkg -remove pkgname (leaves config files behind) Install a package from a local file rpm -i file.rpm (Open it in Midnight Commander (mc) and then enter CONTENTS.cpio(1)) dpkg-deb -extract b dir-to-extract-to grep through the Contents.arch file found in ftp.us./debian/dists/frozen/Įxtract files in a package without installing it.List files in an uninstalled package (depends on dist) List files in a package on the local hard drive rpm -qpl file.rpm List information about a package on the local hard drive rpm -qpi file.rpm

List files in an installed package rpm -ql pkgname List information about an installed package: rpm -qi pkgnameĭpkg -status pkgname (prints a bunch of extra info too) This guide may help people switching to a dpkg based distribution like Debian from an RPM based one like RedHat.Ī quick comparison of rpm and apt/dpkg command-line arguments In order to extract sources from an rpm archive, it may be necessary to use the rpm tool.Ī developer may want to extract package source code that is only available within an rpm archive. rpm format, you can use alien to convert it. Why would anyone want to use the RPM within Debian? Binary package A search for rpm vs deb or rpm vs dpkg will turn them up. There are some good (and more not so good) write-ups comparing the two package management systems. The RPM was developed at RedHat for keeping track of the files each program or package installed as well as noting what other packages it depended on or depended on it, some information about the source of the package and a brief synopsis.
