How to remove unneeded packages on your Ubuntu Linux system.

Posted: March 2, 2015. At: 2:55 PM. This was 3 years ago. Post ID: 8078
Page permalink: http://securitronlinux.com/bejiitaswrath/how-to-remove-unneeded-packages-on-your-ubuntu-linux-system/

Now, we must convince Congress to stop the FCC. Can you display an alert?

I wanted to update my Ubuntu 14.04 server and I saw this output. I needed to remove these unwanted packages on my system.

ubuntu@ip-172-31-20-16:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libice6
  libio-socket-inet6-perl libllvm3.4 libnet-dns-perl libnet-ip-perl
  libpciaccess0 libsm6 libsocket6-perl libtcl8.6 libtk8.6 libtxc-dxtn-s2tc0
  libutempter0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1
  libxfixes3 libxft2 libxi6 libxinerama1 libxmu6 libxrandr2 libxrender1
  libxshmfence1 libxss1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 tcl
  tcl8.6 tk tk8.6 x11-common x11-utils xbitmaps xterm
Use 'apt-get autoremove' to remove them.
The following packages have been kept back:
  linux-headers-generic linux-headers-virtual linux-image-virtual
  linux-virtual
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

I ran the sudo apt-get autoremove command and this removed all of the unwanted packages.

ubuntu@ip-172-31-20-16:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libfontenc1
  libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libice6
  libio-socket-inet6-perl libllvm3.4 libnet-dns-perl libnet-ip-perl
  libpciaccess0 libsm6 libsocket6-perl libtcl8.6 libtk8.6 libtxc-dxtn-s2tc0
  libutempter0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-shape0 libxcb-sync1 libxcomposite1 libxdamage1
  libxfixes3 libxft2 libxi6 libxinerama1 libxmu6 libxrandr2 libxrender1
  libxshmfence1 libxss1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 tcl
  tcl8.6 tk tk8.6 x11-common x11-utils xbitmaps xterm
0 upgraded, 0 newly installed, 52 to remove and 4 not upgraded.
After this operation, 75.1 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 55458 files and directories currently installed.)
Removing libnet-dns-perl (0.68-1.2build1) ...
Removing libdigest-hmac-perl (1.03+dfsg-1) ...
Removing libgl1-mesa-dri:amd64 (10.1.3-0ubuntu0.3) ...
Removing libdrm-intel1:amd64 (2.4.56-1~ubuntu2) ...
Removing libdrm-nouveau2:amd64 (2.4.56-1~ubuntu2) ...
Removing libdrm-radeon1:amd64 (2.4.56-1~ubuntu2) ...
Removing x11-utils (7.7+1) ...
Removing libfontenc1:amd64 (1:1.1.2-1) ...
Removing libgl1-mesa-glx:amd64 (10.1.3-0ubuntu0.3) ...
Removing libglapi-mesa:amd64 (10.1.3-0ubuntu0.3) ...
Removing xterm (297-1ubuntu1) ...
Removing libxaw7:amd64 (2:1.0.12-1) ...
Removing libxmu6:amd64 (2:1.1.1-1) ...
Removing libxt6:amd64 (1:1.1.4-1) ...
Removing libio-socket-inet6-perl (2.71-1) ...
Removing libllvm3.4:amd64 (1:3.4-1ubuntu3) ...
Removing libnet-ip-perl (1.26-1) ...
Removing libpciaccess0:amd64 (0.13.2-1) ...
Removing libsm6:amd64 (2:1.2.1-2) ...
Removing libsocket6-perl (0.25-1) ...
Removing tk (8.6.0+6ubuntu3) ...
Removing tk8.6 (8.6.1-3ubuntu2) ...
Removing tcl (8.6.0+6ubuntu3) ...
Removing tcl8.6 (8.6.1-4ubuntu1) ...
Removing libtk8.6:amd64 (8.6.1-3ubuntu2) ...
Removing libtxc-dxtn-s2tc0:amd64 (0~git20131104-1.1) ...
Removing libutempter0 (1.1.5-4build1) ...
Removing libx11-xcb1:amd64 (2:1.6.2-1ubuntu2) ...
Removing libxcb-dri2-0:amd64 (1.10-2ubuntu1) ...
Removing libxcb-dri3-0:amd64 (1.10-2ubuntu1) ...
Removing libxcb-glx0:amd64 (1.10-2ubuntu1) ...
Removing libxcb-present0:amd64 (1.10-2ubuntu1) ...
Removing libxcb-shape0:amd64 (1.10-2ubuntu1) ...
Removing libxcb-sync1:amd64 (1.10-2ubuntu1) ...
Removing libxcomposite1:amd64 (1:0.4.4-1) ...
Removing libxdamage1:amd64 (1:1.1.4-1ubuntu1) ...
Removing libxfixes3:amd64 (1:5.0.1-1ubuntu1) ...
Removing libxft2:amd64 (2.3.1-2) ...
Removing libxi6:amd64 (2:1.7.1.901-1ubuntu1) ...
Removing libxinerama1:amd64 (2:1.1.3-1) ...
Removing libxrandr2:amd64 (2:1.4.2-1) ...
Removing libxrender1:amd64 (1:0.9.8-1) ...
Removing libxshmfence1:amd64 (1.1-2) ...
Removing libxss1:amd64 (1:1.2.2-1) ...
Removing libxtst6:amd64 (2:1.2.2-1) ...
Removing libxv1:amd64 (2:1.0.10-1) ...
Removing libxxf86dga1:amd64 (2:1.1.4-1) ...
Removing libxxf86vm1:amd64 (1:1.1.3-1) ...
Removing xbitmaps (1.1.1-2) ...
Removing libice6:amd64 (2:1.0.8-2) ...
Removing libtcl8.6:amd64 (8.6.1-4ubuntu1) ...
Removing x11-common (1:7.7+1ubuntu8.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...

No comments have been made. Use this form to start the conversation :)

Leave a Reply