apt-get (8) – APT package handling utility – – command-line interface

commandline session

NO WARRANTY

$sudo apt-get remove cowsay
[sudo] password for jeffrin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cpp-4.7 libdrm-nouveau1a libmpc2 linux-headers-3.11-1-common linux-kbuild-3.11
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  cowsay
0 upgraded, 0 newly installed, 1 to remove and 1061 not upgraded.
After this operation, 91.1 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 163573 files and directories currently installed.)
Removing cowsay ...
Processing triggers for man-db ...
$sudo apt-get remove --purge cowsay
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'cowsay' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  cpp-4.7 libdrm-nouveau1a libmpc2 linux-headers-3.11-1-common linux-kbuild-3.11
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1061 not upgraded.
$sudo apt-get  --purge cowsay
E: Invalid operation cowsay
$sudo apt-get install cowsay
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cpp-4.7 libdrm-nouveau1a libmpc2 linux-headers-3.11-1-common linux-kbuild-3.11
Use 'apt-get autoremove' to remove them.
Suggested packages:
  filters
The following NEW packages will be installed:
  cowsay
0 upgraded, 1 newly installed, 0 to remove and 1061 not upgraded.
Need to get 0 B/21.9 kB of archives.
After this operation, 91.1 kB of additional disk space will be used.
Selecting previously unselected package cowsay.
(Reading database ... 163508 files and directories currently installed.)
Unpacking cowsay (from .../cowsay_3.03+dfsg1-4_all.deb) ...

Processing triggers for man-db ...
Setting up cowsay (3.03+dfsg1-4) ...
$sudo apt-get remove --purge cowsay
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cpp-4.7 libdrm-nouveau1a libmpc2 linux-headers-3.11-1-common linux-kbuild-3.11
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  cowsay*
0 upgraded, 0 newly installed, 1 to remove and 1061 not upgraded.
After this operation, 91.1 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 163573 files and directories currently installed.)
Removing cowsay ...
Processing triggers for man-db ...
$

Video Tutorial (NO WARRANTY)