[main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_unavailable=False 常用选项说明: 表1 main参数说明 参数说明 cachedir 缓存目录,该目录用于存储RPM包和数据库文件。 keepcache 可选值是1和0,表示是否要缓存已安装成功的那些RPM包及头文件,默认值为0,即不缓存。
所以openEuler软件源的配置一般有两种方式,一种是直接配置/etc/dnf/dnf.conf文件中的“repository”部分,另外一种是在/etc/yum.repos.d目录下增加.repo文件。 14.1.1 配置main部分 /etc/dnf/dnf.conf 文件包含的“main”部分,配置示例如下: [main]gpgcheck=1installonly_limit=3clean_requirements_on_remove=True...
If dnf reports that dependencies on installed packages are unmet while installing a new package, update the dependent packages before trying again. 3.6.1.5. Clean on remove When removing a package, dnf will automatically remove any dependent packages that were not explicitly installed by the user. ...
|check-update|Checkforavailablepackageupgrades| |remove|Removeapackageorpackagesfromyoursystem| |reinstall|Reinstallapackage| |downgrade|Downgradeapackage| |autoremove|Removeallunneededpackagesthatwereoriginallyinstalledasdependencies| |distro-sync|Synchronizeinstalledpackagestothelatestavailableversions| |makecache|Gene...
clean_requirements_on_remove boolean Remove dependencies that are no longer used during dnf remove. A package only qualifies for removal via clean_requirements_on_remove if it was installed through DNF but not on explicit user request, i.e. it was pulled in as a dependency. The default is ...
|downgrade | Downgrade a package | |autoremove | Remove all unneeded packages that were originally installed as dependencies | |distro-sync | Synchronize installed packages to the latest available versions | |makecache | Generate the metadata cache | ...
If clean_requirements_on_remove is enabled (the default) also removes any dependencies that are no longer needed. dnf [options] repository-packages <repoid> remove-or-distro-sync [<package-name-spec>...] Select all packages installed from the repository. Upgrade, downgrade or keep those ...
Removes all packages from the system that were originally installed as dependencies of user-installed packages, but which are no longer required by any such package. dnf [options] autoremove <spec>... This is an alias for the :ref:`\remove_command-label` command with clean_requirements_on_re...
sudo dnf removepackage And to automatically remove unneeded dependencies, use: sudo dnf autoremove DNF and APT Are More Alike Than Different Some long-time Linux users have an established preference between APT and DNF. They've learned the syntax to do more powerful operations, and switching invol...
7. Uninstall Package Packages can be uninstalled with the ‘remove’ argument, as shown below. [root@centos7 ~]#dnf remove httpdUsing metadata from Thu Dec 29 21:31:01 2016 Dependencies resolved. === Package Arch Version Repository Size === Removing: httpd x86_64 2.4.6-45.el7.centos @...