One Day One Cmd

Place for playing with commands…

Day 64: $ apt-get autoremove

ODOC: apt-get  autoremove <package name> autoremove option is used to remove packages that were automatically installed to satisfy dependencies for some package and that are no more needed.

To see the difference between the remove and autoremove option just execute these 2 commands.

[1] bala@bala-desktop:~$ sudo apt-get remove vlc
[2] bala@bala-desktop:~$ sudo apt-get autoremove vlc

[1]
bala@bala-desktop:~$ sudo apt-get remove vlc
[sudo] password for bala: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
 libxcb-keysyms1 libcddb2 libdvbpsi5 libvlc2 vlc-nox libupnp3 libiso9660-7
 liblua5.1-0 vlc-plugin-pulse vlc-data libtar libvlccore2 libvcdinfo0
 libebml0 libmatroska0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
 vlc
0 upgraded, 0 newly installed, 1 to remove and 178 not upgraded.
After this operation, 3,883kB disk space will be freed.
Do you want to continue [Y/n]?
[2]
bala@bala-desktop:~$ sudo apt-get autoremove vlc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
 libcddb2 libdvbpsi5 libebml0 libiso9660-7 liblua5.1-0 libmatroska0 libtar
 libupnp3 libvcdinfo0 libvlc2 libvlccore2 libxcb-keysyms1 vlc vlc-data
 vlc-nox vlc-plugin-pulse
0 upgraded, 0 newly installed, 16 to remove and 173 not upgraded.
After this operation, 37.0MB disk space will be freed.
Do you want to continue [Y/n]?

From [1] and [2] you can notice that size of package is increased when autoremove option is used it is because of removing their dependencies too. Thats the fact…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: