dpkg

Linux · Packages · available in the simulator

What it does

Manage local .deb packages.

Syntax

dpkg [opciones] paquete.deb

Options and parameters

  • -i

    Install the specified .deb package.

    sudo dpkg -i paquete.deb
  • -r

    Remove the package while preserving its configuration.

  • -l

    List installed packages.

    dpkg -l | grep nginx
  • -L PKG

    list files installed by a package

  • -S RUTA

    find which package owns a file

  • -P

    Purge the package and delete its configuration.

  • -L

    List files installed by a package.

  • -S

    Find which package owns a file.

    dpkg -S /usr/bin/ls

Usage examples

  • sudo dpkg -i paquete.deb
  • dpkg -l
  • sudo dpkg -r paquete
  • dpkg -L vim
  • dpkg -l | grep nginx
  • dpkg -S /usr/bin/ls
Practise dpkg

Related commands