Update A Specific Package With apt-get

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, February 10, 2009

Follow me on Twitter as @mattiasgeniar

Probably default knowledge to most, but I didn’t find it right way. Turns out the “install” parameter, is also the “upgrade” control for a specific package.

If you’re trying to update a specific package, do this:

apt-get install <package>

If the package’s already installed, the latest version will be installed on top of it. Using “install” as the upgrade parameter – who comes up with these things. :-)

Here’s a useful overview of all apt-get options: apt-get package management cheat sheet.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.