User Tools

Site Tools


linux:administration:packages

Table of Contents

Packages

Howto

RPM

  • install a package: rpm -i <package>.pkg
  • show package infos (incl. dependencies): rpm -qiRp <package>.pkg
  • show all files in a package: rpm -qlp <package>.pkg

DPKG

  • install a package: dpkg -i <package>
  • show all installed packages: dpkg -l
  • reconfigures a package:1) dpkg-reconfigure <package>
  • uninstall a package: dpkg -r <package>
  • uninstall, ignoring dependencies: dpkg -r --force-depends <package>
  • show package an (installed) file belongs to: dpkg -S <file-path>

APT

  • automatically remove all unused packages: sudo apt-get autoremove
1)
For example dpkg-reconfigure -plow dash deactivates Dash as shell.
linux/administration/packages.txt · Last modified: 2021/08/05 10:54 by Ralf Hoppe