今天给大家讲解下如何安装LNMP ,首先呢我们要知道上面是DNF命令是什么.
DNF是什么?
DNF仅仅是基于RPM的Linux发行版(如CentOS、RHEL、Fedora等)的下一代包管理器(在YUM之后)。在本文中,我将向您展示如何使用DNF包管理器来管理CentOS 8包。接下来跟着我学习一步一步的学习吧。
如果浏览不顺畅请到 原文章出处:https://www.sky8g.com/technology/3309/
请注意可能会提示风险,这是csdn设置网站设置的问题,请放心访问,谢谢。
https://www.sky8g.com/technology/3309/
本篇文章原创文章禁止抄袭和复制,否者必究。
DNF命令的一般语法
1 |
dnf [Option] [Command] [Package_Name] |
DNF配置文件的位置
1 2 3 |
Main Configuration: /etc/dnf/dnf.conf Repository: /etc/yum.repos.d/ Cache Files: /var/cache/dnf |
常用的DNF命令如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
+---------------------+-------------------------------------------------------------------------------------------+ | Command | Description | +---------------------+-------------------------------------------------------------------------------------------+ |repolist | Display the configured software repositories | |install | Install a single or multiple packages on your system | |upgrade | Upgrade a package or packages on your system | |upgrade-minimal | Upgrade, but only 'newest' package match which fixes a problem that affects your system | |list | List a package or groups of packages | |info | Display details about a package or group of packages | |updateinfo | Display advisories about packages | |search | Search package details for the given string | |check-update | Check for available package upgrades | |remove | Remove a package or packages from your system | |reinstall | Reinstall a package | |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 | |repository-packages | Run commands on top of all packages in given repository | |provides | Find what package provides the given value & |