Ubuntu – various software management commands
- December 20th, 2010
- Posted in Documentation
- Write comment
While I have not spent much looking, I have yet to find a way to have Ubuntu 10.4 manage the number kernels it keeps after upgrading. I have had to manually remove older kernels to apply updated versions later.
To list your currently install kernels:
From a Terminal session enter the following:
sudo dpkg -l | grep linux-image | more
To remove kernel packages, enter the following:
sudo apt-get remove linux-image-2.6.xx-yy-generic
Note: You can remove multiple installed kernels by just adding them to the list:
sudo apt-get remove linux-image-2.6.xx-yy-generic linux-image-2.6.xx-zz-generic
To list all installed packages:
dpkg --get-selections
To list all files a package contains:
dpkg -L packagename
To install a package:
dpkg -i packagefilename
For example:
dpkg -i somepackage.deb
To list available packages:
apt-cache search –names-only ‘stringtosearch’
To clear apt cache:
apt-get clean
To update your repository list:
apt-get update
To upgrade one software package:
apt-get install –only-upgrade packagefilename
To upgrade all software packages, if one is available:
apt-get upgrade
To disable a service:
update-rc.d servicename disable
I figured posting an unapproved comment might get your attention. I happened across your site while googling my own name and we share a lot more than names in common. I too, am a Zimmerman that has been working on computers since early 90’s. Please contact me at the above e-mail address if you have any interest. I recently started looking for jobs and wanted to be sure what would come up, luckily your blog actually works for me too, so it will hopefully look really good on my behalf if they stumble across it. I go by James most of the time because my dad is “jim” and I’m not listing it directly but they may infer. Also, please feel free to delete this comment, it was only intended to get your attention, not actually be a comment, but your whois didn’t have any good contact leads. I’m an avid Linux system admin, gave up on windows, and work on Java/Flex/PHP applications. — James