| |
@@ -0,0 +1,26 @@
|
| |
+ = How can I exclude selected packages?
|
| |
+
|
| |
+ when I rum dnf update command under FEDORA?
|
| |
+
|
| |
+ With the Command Line:
|
| |
+
|
| |
+ Until a fix is available you can block the offending package from updating by adding an option to the command, replace packagename with the name of the package(s), specified by a name or a glob and separated by a comma
|
| |
+
|
| |
+ ....
|
| |
+ sudo dnf upgrade --excludepkgs
|
| |
+ ....
|
| |
+
|
| |
+ In Configuration Files:
|
| |
+
|
| |
+ It is also possible to add the exclude option to the configuration file. If you use a gui update application this is the best option. You will need root permission to edit this file so use su - or prefix the command with sudo. Add this to `/etc/dnf/dnf.conf`.
|
| |
+
|
| |
+ ....
|
| |
+ excludepkgs=
|
| |
+ ....
|
| |
+
|
| |
+ Exclude packages of this repository, specified by a name or a https://en.wikipedia.org/wiki/Glob_(programming)[GLOB] and separated by a comma, from all operations. Can be disabled using `--disableexcludes` command line switch.
|
| |
+
|
| |
+ Source -> https://dnf.readthedocs.io/en/latest/conf_ref.html[conf_ref]
|
| |
+
|
| |
+ WARNING: There must be a small warning with excluding packages when updating your machine. By doing this you are explicitly stopping certain packages from updating. Before you do this you should check to see if the update you are missing is not an important security update.
|
| |
+ However excluding packages can be helpful when you know that an update will cause issues for your system.
|
| |
This specially Useful when you've got a problem with a package and and while the problem is solved, you can stop it from update... or when you download a package manually and for some reason you don't want to upgrade it...