$ sudo dpkg -i name_of_package.deb #
$ sudo dpkg -r name_of_package # remove a package
$ dpkg -P googler_3.3.0-1_all.deb # remove everything including conf files
$ dpkg -l # list all packages
$ dpkg -c flashplugin-nonfree_3.2_i386.deb # view the content of the particular package
$ dpkg --unpack flashplugin-nonfree_3.2_i386.deb # unpack the package.
$ dpkg --configure flashplugin-nonfree # can be later configured
$ dpkg -s git # check if package is installed
$ dpkg -L git # location of the installed package
$ dpkg --audit # check any issues
$ apt update # download package information from all configured sources
$ apt upgrade
$ apt install [...PACKAGES]
$ apt remove [...PACKAGES]
$ apt purge [...PACKAGES] # remove with configuration files
$ apt search [...REGEX] # search package
$ apt show [...PACKAGES] # package info
$ apt list [--installed/--upgradeable/--all-versions]
Add Repository with add-apt-repository: Use the following commands to add launchpad PPA to your system.
$ sudo add-apt-repository ppa:Software_name/ppa
Add Repository with Files: You have to open and edit the source list by adding the required repository path in “/etc/apt/sources.list”, by using the following command:
$ vi /etc/apt/sources.list
Synaptic Many of you prefer graphical interfaces, so for them, there is a lightweight GUI front end apt package management system Synaptic made for Debian, Ubuntu, Linux Mint, and many other Debian/Ubuntu-based distributions.
Install Synaptic using the following command:
$ sudo apt install synaptic