Linux one zero one: a way to hang applications back from getting upgraded with apt

Posted by Ladegaard Bartlett on July 18th, 2021

© supplied with the aid of TechRepublic image: Jack Wallen © photograph: Jack Wallen You likely have lots of utility put in to your Linux servers. Of path, each and every of those packages depends on different programs to characteristic safely. You could also have a situation where you could have developed a domain or utility that is dependent upon a extremely certain edition of a equipment. for example, say you will have constructed a web utility that uses personal home page 7.4 and you comprehend that upgrading to php 8 could wreck the entire device—you actually do not need that. besides the fact that children be sure you likely ensure your internet application can run on the latest version of the utility, that comprises the newest bug fixes and vulnerability patches, we all comprehend that takes some time. SEE: Linux carrier control instructions (TechRepublic premium) What do you do? if your operating equipment of choice uses apt, retaining a equipment again from getting upgraded is rather primary. Let me reveal you the way. a way to grasp a equipment lower back with apt holding a kit returned with apt can be finished with a single command. for instance the kit in question is php7.4 and you wish to be sure it isn't upgraded. For that, you would problem the command: sudo apt-mark hold php7.four It in reality is that simple. Now, for example you finally retool your web application so it is going to work with Hypertext Preprocessor eight. How do you unmark php7.4 for an upgrade? You difficulty the command: sudo apt-mark unhold php7.four The subsequent time you run sudo apt-get improve, if Hypertext Preprocessor 8 is accessible for your equipment, it's going to be upgraded. this is a really crucial tool to use in your construction and production techniques. just be certain you do not mark too many applications to be held, otherwise, you could finally end up with an working equipment filled with inclined utility. Subscribe to TechRepublic's how to Make Tech Work on YouTube for all of the latest tech suggestions for company professionals from Jack Wallen. also see 토토커뮤니티

Like it? Share it!


Ladegaard Bartlett

About the Author

Ladegaard Bartlett
Joined: July 18th, 2021
Articles Posted: 1