Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Clean Cache in Linux

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
I think it's safe to remove the archives files. So if you want to free up disk space this are my recommendations:

To delete downloaded packages (.deb) already installed (and no longer needed)

sudo apt-get clean
To remove all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).

sudo apt-get autoclean
To remove unnecessary packages (After uninstalling an app there could be packages you don't need anymore).

sudo apt-get autoremove
To delete old kernel versions

sudo apt-get remove --purge linux-image-X.X.XX-XX-generic
If you don't know which kernel version to remove

dpkg --get-selections | grep linux-image
Comment

PREVIOUS NEXT
Code Example
Shell :: gitignore .idea 
Shell :: how to get list of files in zip linux 
Shell :: linux get docker compose logs 
Shell :: check which repo i am on git 
Shell :: git show upstream 
Shell :: clone a branch 
Shell :: composer tree 
Shell :: rancher docker reset password 
Shell :: check folder size in linux terminal 
Shell :: download chrome command line kali linux 
Shell :: ssh key git 
Shell :: extract numners from string linux 
Shell :: linux get partition list 
Shell :: update git repo local 
Shell :: conda install dask 
Shell :: restart server centos 
Shell :: docker command to find jenkins password 
Shell :: rerun supervisor 
Shell :: interface graphique sur python 
Shell :: why i am not able to make a directory in htdocs folder in ubuntu 
Shell :: how to run an appimage in linux 
Shell :: count number of files linux 
Shell :: linux check hardware using 
Shell :: kill process in windows using port number 
Shell :: nano zsh 
Shell :: ubuntu print path 
Shell :: aws cli download multiple files s3 
Shell :: check if mongodb is running mac 
Shell :: os environ select defaut gpu 
Shell :: making file executable linux 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =