Ubuntu Package Management

Install or update a package: sudo dpkg --install file.deb sudo apt install nome_pkg

Remove a package: sudo dpkg --remove nome_pkg sudo apt remove nome_pkg

Remove a package and its configuration files: sudo dpkg --purge nome_pkg sudo apt purge nome_pkg

Find which package a file belongs to: dpkg --search /path/to/file

List installed packages: dpkg --get-selections dpkg --list

View the details of a package: dpkg --info file.deb dpkg --status nome_pkg apt show nome_pkg

List files inside a package: dpkg --contents file.deb dpkg --listfiles nome_pkg

In case of problems: sudo apt install -f sudo dpkg --configure -a

Creare a package:
 * https://packaging.ubuntu.com/html/