I know how to skip the installation of weak dependencies with dnf when installing a package (either by modifying dnf.conf or directly in the command line). I was wondering: is it possible to skip a package weak dependencies during a kickstart installation?
Asked
Active
Viewed 1.4k times
2 Answers
9
1. Command line parameter
dnf --setopt=install_weak_deps=False newPackageName
2. Permanent setting in the dnf config file
sudo vi /etc/dnf/dnf.conf
add a line
install_weak_deps=False
8
Just notice this question has not a definitive answer; I'll provide myself one after a bunch of years. To skip the installation of weak dependencies for packages included in the %packages section of a kickstart file, it's enough to use the --excludeWeakdeps option:
%packages --excludeWeakdeps
# your packages
%end
In modern versions of Anaconda, instead, you need to use:
%packages --exclude-weakdeps
# your packages
%end
Egidio Docile
- 331
- 2
- 4
- 8