- open a terminal window
- launch the following command
sudo aptitude install trash-cli
- Linux will ask you for the superuser password
- Reply to the questions with “y” or “Y”
The following NEW packages will be installed: python-pkg-resources{a} trash-cli The following packages will be REMOVED: libllvm11{u} libxcb-xtest0{u} linux-modules-extra-5.4.0-67-generic{u} linux-modules-extra-5.4.0-72-generic{u} 0 packages upgraded, 2 newly installed, 4 to remove and 77 not upgraded.Need to get 154 kB of archives. After unpacking 486 MB will be freed.Do you want to continue? [Y/n/?] yGet: 1 http://archive.ubuntu.com/ubuntu focal/universe amd64 python-pkg-resources all 44.0.0-2 [129 kB]Get: 2 http://archive.ubuntu.com/ubuntu focal/universe amd64 trash-cli all 0.17.1.14-2ubuntu1 [24,2 kB]Fetched 154 kB in 0s (615 kB/s)
- simply watch the script search for unnecessary files on your system:
(Reading database ... 460254 files and directories currently installed.)Removing libllvm11:amd64 (1:11.0.0-2~ubuntu20.04.1) ...Removing libxcb-xtest0:amd64 (1.14-2) ...Removing linux-modules-extra-5.4.0-67-generic (5.4.0-67.75) ...Removing linux-modules-extra-5.4.0-72-generic (5.4.0-72.80) ...Selecting previously unselected package python-pkg-resources.(Reading database ... 449502 files and directories currently installed.)Preparing to unpack .../python-pkg-resources_44.0.0-2_all.deb ...Unpacking python-pkg-resources (44.0.0-2) ...Selecting previously unselected package trash-cli.Preparing to unpack .../trash-cli_0.17.1.14-2ubuntu1_all.deb ...Unpacking trash-cli (0.17.1.14-2ubuntu1) ...Setting up python-pkg-resources (44.0.0-2) ...Setting up trash-cli (0.17.1.14-2ubuntu1) ...Processing triggers for libc-bin (2.31-0ubuntu9.2) ...Processing triggers for man-db (2.9.1-1) ...
- launch the following command to execute the deletion of all unnecessary files:
wassim@wassim-PC:~$ trash-emptywassim@wassim-PC:~$
Comments
Post a Comment