#138 Add exclude packages with DNF
Closed 4 years ago by hhlp. Opened 4 years ago by hhlp.
Unknown source exclude  into  master

file modified
+1
@@ -43,6 +43,7 @@

  ** xref:using-aide.adoc[Checking file integrity with AIDE]

  ** xref:getting-started-with-apache-http-server.adoc[Getting started with Apache HTTP Server]

  ** xref:how-to-edit-iptables-rules.adoc[How to edit iptables rules]

+ ** xref:howto-to-exclude-packages-with-dnf.adoc[How to Exclude Packages with DNF]

  

  

  * xref:getting-started-with-selinux.adoc[SELinux]

@@ -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.

  • create a nav.adoc un Upgrading to a new release
  • create a page howto-to-exclude-packages-with-dnf.adoc

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...

Metadata Update from @jflory7:
- Pull-request tagged with: needs committer review, new change

4 years ago

Metadata Update from @ankursinha:
- Request assigned

4 years ago

The content looks good, but I wonder if it'll be better to add it here instead of a fresh page?

https://docs.fedoraproject.org/en-US/quick-docs/dnf/

What do you think @hhlp @jflory7 ?

+1 just ping me and I can adjust and I would like improve it to add versionlock

https://ask.fedoraproject.org/t/howto-how-can-i-exclude-selected-packages-when-i-run-dnf-update-command/1741

let's see @jflory7 comment

Regards.,

I will completely start again and restructure this PR, close it

Regards.,

Pull-Request has been closed by hhlp

4 years ago