To delete unused kernels, use the following command:
sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
To delete the RC packages, use the following command:
dpkg -l | grep ^rc | cut -d' ' -f3| sudo xargs dpkg -P
Use this command to remove the unused configuration files:
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
Make sudo regards http_proxy etc., add in file /etc/sudoers:
Defaults env_keep += "http_proxy"
14.7.09
Subscribe to:
Post Comments (Atom)
The command to delete unused kernels was really very useful.. I have been following a long tutorial once to remove the unused kernel..
ReplyDelete