Linux Installation rpm vs apt-get

In the commercial world, there seems to be a lot more Red Hat than Debian work, so a lot of people end up doing a lot more rpming than apt-getting. But, who wants to load Red Hat or Fedora at home when they could load a Debian based distro like Ubuntu. The tough part is bouncing back and forth on the installation commands. It always seems like the GUI tools don’t cut it.

The following lists are Red Hat first, Debian second.

  • Package installation:
    • rpm -i packageName or up2date –install packageName
    • apt-get install packageName
  • Determine if a package is installed:
    • rpm -qa | grep packageName
    • dpkg -l |grep packageName
  • Get the latest updates:
    • up2date –install –channel channelName
    • apt-get update; apt-get upgrade
  • List the files in a package:
    • rpm -ql packageName
    • dpkg -L packageName
  • Find out what package provided a file:
    • rpm -qf fileName
    • dpkg -S fileName
  • Remove a package:
    • rpm -e packageName
    • apt-get remove packageName

Comments are closed.