Centos disable package update


















Just at the time when you go for any update, use -x switch in yum command to exclude package which you do not want to update, like:. The above command will update all the packages whose updates are available, excluding python-3 on your system. Here, for excluding multiple packages, use -x multiple times, or separate package names with ',' in a single switch.

Using --exclude switch works same as -x , just need to replace -x with —exclude and pass ',' separated list of package names to it. For any package installed from any external source via adding a repository, there is another way to stop its up-gradation in future. This can be done by editing its.

Add the exclude option with the package name in the repo. Like: to exclude any package say wine from epel repo , add the following line in epel. Another way in yum to mask the version of any package thus making it unavailable for up-gradation, is to use versionlock option of yum, but to do this, you must yum-plugin-versionlock package installed on the system.

For example, to lock the version of package say httpd to 2. To view locked packages, use the following command will list the packages which have been version locked. If you have any other tricks to do the same things, you can comment them with us.

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Instead of disabling the repo from updating in the yum update command, you can set the 'enabled' parameter to 0 in the repository configuration file.

To exclude the kibana This implies that any packages from the kibana repo will not be updated when the yum update command is run. Thank you for taking your time on this tutorial. We hope that we've addressed the issue on how you can disable specific packages in Yum. Free to give it a try and get back to us with your feedback. If you want to disable updates from both, then repeat these steps for each of the mentioned files.

For this purpose, add the following line to the end of the opened file. Now we will test if the above packages have actually been excluded. We will do this by running an update command for apache server package.

You will see the following kind of output. The last line says that there are no packages to be updated, indicating that there are no updates for Apache package.



0コメント

  • 1000 / 1000