Linux 101: How to hold packages back from getting upgraded with apt

Jack Wallen shows you how to mark a package on an Ubuntu system such that it won’t upgrade when the apt-get upgrade command is issued.

Image: Jack Wallen

You probably have a lot of software installed on your Linux servers. Of course, each of those packages depends on other packages to function properly. You might even have a situation where you’ve developed a website or application that depends on a very particular version of a package. 

For example, say you’ve built a web application that uses PHP 7.4 and you know that upgrading to PHP 8 might break the entire system—you certainly don’t want that. Although you should probably ensure your web application can run on the latest version of the software, that includes the latest bug fixes and vulnerability patches, we all know that takes some time.

SEE: Linux service…

Keep reading the full content on the TechRepublic site.

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Spread the love

Leave a Comment