User Tools

Site Tools


linux:yum_dnf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:yum_dnf [2021/01/01 21:25]
127.0.0.1 external edit
linux:yum_dnf [2025/08/23 23:47] (current)
Line 5: Line 5:
 ==== Overview ==== ==== Overview ====
  
-<fc #337dff>/etc­/dn­f/d­nf.c­onf</​fc> ​ ​DNF ​config­uration ​file\\ +/etc/dnf/dnf.conf  ​DNF ​configuration ​file\\ 
-<fc #337dff>/etc­/yu­m.r­epo­s.d</​fc> ​ all repo files+/etc/yum.repos.d  all repo files
  
 ==== List ====  ==== List ==== 
  
-<fc #337dff>dnf list --all</​fc> ​list all installed and available packages\\ +**dnf list --all** list all installed and available packages\\ 
-<fc #337dff>dnf list expre­ssi­on</​fc> ​list packages matching expre­ssion\\ +**dnf list expre­ssi­on** list packages matching expre­ssion\\ 
-<fc #337dff>dnf list --inst­alled expre­ssi­on</​fc> ​list installed packges matching expre­ssion\\ +**dnf list --inst­alled expre­ssi­on** list installed packges matching expre­ssion\\ 
-<fc #337dff>dnf list --avai­lable expre­ssi­on</​fc> ​list available packages matching expre­ssion\\ +**dnf list --avai­lable expre­ssi­on** list available packages matching expre­ssion\\ 
-<fc #337dff>dnf list --extras expre­ssi­on</​fc> ​list extras packages matching expre­ssion\\ +**dnf list --extras expre­ssi­on** list extras packages matching expre­ssion\\ 
-<fc #337dff>dnf list --obso­letes expre­ssi­on</​fc> ​list obsoletes packages matching expre­ssion\\ +**dnf list --obso­letes expre­ssi­on** list obsoletes packages matching expre­ssion\\ 
-<fc #337dff>dnf list --recent expre­ssi­on</​fc> ​list recent packages matching expre­ssion\\ +**dnf list --recent expre­ssi­on** list recent packages matching expre­ssion\\ 
-<fc #337dff>dnf list --upgrades expre­ssi­on</​fc> ​list upgrades available for packges matching expre­ssion\\ +**dnf list --upgrades expre­ssi­on** list upgrades available for packges matching expre­ssion\\ 
-<fc #337dff>dnf list --auto­rem­ove</​fc> ​list orphaned packages+**dnf list --auto­rem­ove** list orphaned packages
  
 ==== Info ====  ==== Info ==== 
  
-<fc #337dff>dnf info packa­ge_­name</​fc> ​show info of packa­ge_­name\\ +**dnf info packa­ge_­name** show info of packa­ge_­name\\ 
-<fc #337dff>dnf provides path/​­to/​­file</​fc> ​show which package provides /​path­/​to­/​file+**dnf provides path/​­to/​­file** show which package provides /​path­/​to­/​file
  
 ==== Search ====  ==== Search ==== 
  
-<fc #337dff>dnf search term</​fc> ​search for term in package name and summary ​+**dnf search term** search for term in package name and summary ​
  
 ==== Download ==== ==== Download ====
  
-<fc #337dff>dnf install dnf-pl­ugi­ns-­core</​fc> ​install dnf core plugins\\ +**dnf install dnf-pl­ugi­ns-­core** install dnf core plugins\\ 
-<fc #337dff>dnf download packa­ge</​fc> ​download package+**dnf download packa­ge** download package
   
 ==== Install ====  ==== Install ==== 
  
-<fc #337dff>dnf install packa­ge_­name</​fc> ​install package and depend­encies\\ +**dnf install packa­ge_­name** install package and depend­encies\\ 
-<fc #337dff>dnf install /​path­/​to­/​lo­cal­/​rpm</​fc> ​install local package and depend­encies\\ +**dnf install /​path­/​to­/​lo­cal­/​rpm** install local package and depend­encies\\ 
-<fc #337dff>dnf install /​path­/​to­/​fi­l</fc>e install package which provides /​path­/​to­/​file\\ +**dnf install /​path­/​to­/​fi­l**e install package which provides /​path­/​to­/​file\\ 
-<fc #337dff>dnf reinstall packa­ge_­name</​fc> ​reinstall package and depend­encies\\ +**dnf reinstall packa­ge_­name** reinstall package and depend­encies\\ 
-<fc #337dff>dnf downgrade packa­ge_­name</​fc> ​downgrade package\\ +**dnf downgrade packa­ge_­name** downgrade package\\ 
-<fc #337dff>dnf mark install packa­ge_­name</​fc> ​marks the specified packages as installed by user.\\ +**dnf mark install packa­ge_­name** marks the specified packages as installed by user.\\ 
-<fc #337dff>dnf unmark remove packa­ge_­name</​fc> ​unmarks the specified packages as installed by user\\ +**dnf unmark remove packa­ge_­name** unmarks the specified packages as installed by user\\ 
-<fc #337dff>dnf mark group packa­ge_­name</​fc> ​marks the specified packages as installed by group+**dnf mark group packa­ge_­name** marks the specified packages as installed by group
  
 ==== History ====  ==== History ==== 
  
-<fc #337dff>dnf history list</​fc> ​list dnf transa­ctions history\\ +**dnf history list** list dnf transa­ctions history\\ 
-<fc #337dff>dnf history info trans­act­ion</​fc> ​show info of particular trans­action\\ +**dnf history info trans­act­ion** show info of particular trans­action\\ 
-<fc #337dff>dnf history redo trans­act­ion</​fc> ​redo particular trans­action\\ +**dnf history redo trans­act­ion** redo particular trans­action\\ 
-<fc #337dff>dnf history rollback trans­act­ion</​fc> ​rollback particular trans­action\\ +**dnf history rollback trans­act­ion** rollback particular trans­action\\ 
-<fc #337dff>dnf history undo trans­act­ion</​fc> ​undo particular trans­action\\ +**dnf history undo trans­act­ion** undo particular trans­action\\ 
-<fc #337dff>dnf history userin­sta­lled</​fc> ​show all instal­lonly packages, packages installed outside of DNF and packages not installed as dependency+**dnf history userin­sta­lled** show all instal­lonly packages, packages installed outside of DNF and packages not installed as dependency
  
 ==== Update ====  ==== Update ==== 
  
-<fc #337dff>dnf check-­upd­ate</​fc> ​check if updates available\\ +**dnf check-­upd­ate** check if updates available\\ 
-<fc #337dff>dnf upgrade</​fc> ​update packages to latest version\\ +**dnf upgrade** update packages to latest version\\ 
-<fc #337dff>dnf upgrad­e-m­ini­mal</​fc> ​update packages to major patchset and security\\ +**dnf upgrad­e-m­ini­mal** update packages to major patchset and security\\ 
-<fc #337dff>dnf distro­-sync</​fc> ​update packages to latest version+**dnf distro­-sync** update packages to latest version
   
 ==== Repository ====  ==== Repository ==== 
  
-<fc #337dff>dnf repolist --ena­ble­d|­--­dis­abl­ed­|-­-all</​fc> ​lists enabled, disabled or all known reposi­tories\\ +**dnf repolist --ena­ble­d|­--­dis­abl­ed­|-­-all** lists enabled, disabled or all known reposi­tories\\ 
-<fc #337dff>dnf repoqu­ery</​fc> ​searches the available DNF reposi­tories for selected packages\\ +**dnf repoqu­ery** searches the available DNF reposi­tories for selected packages\\ 
-<fc #337dff>dnf reposi­tor­y-p­ack­ages</​fc> ​run commands on top of all packages in the repository\\ +**dnf reposi­tor­y-p­ack­ages** run commands on top of all packages in the repository\\ 
-<fc #337dff>dnf config­-ma­nager --add-­rep­o=­URL</​fc> ​add remote repository+**dnf config­-ma­nager --add-­rep­o=­URL** add remote repository
  
 ==== Group ====  ==== Group ==== 
  
-<fc #337dff>dnf group summary group</​fc> ​show overview of how many groups are installed and available\\ +**dnf group summary group** show overview of how many groups are installed and available\\ 
-<fc #337dff>dnf group info group</​fc> ​show package lists of a group\\ +**dnf group info group** show package lists of a group\\ 
-<fc #337dff>dnf group install --with­-op­tional group</​fc> ​install packages the group contains\\ +**dnf group install --with­-op­tional group** install packages the group contains\\ 
-<fc #337dff>dnf group list group</​fc> ​list all matching group\\ +**dnf group list group** list all matching group\\ 
-<fc #337dff>dnf group remove group</​fc> ​remove those packages in the group\\ +**dnf group remove group** remove those packages in the group\\ 
-<fc #337dff>dnf group upgrade group</​fc> ​upgrades the packages from the group and upgrades the group itself+**dnf group upgrade group** upgrades the packages from the group and upgrades the group itself
  
 ==== Uninstall ====  ==== Uninstall ==== 
  
-<fc #337dff>dnf remove packa­ge_­name</​fc> ​uninstall packa­ge_­name\\ +**dnf remove packa­ge_­name** uninstall packa­ge_­name\\ 
-<fc #337dff>dnf autore­move</​fc> ​uninstall orphaned packages+**dnf autore­move** uninstall orphaned packages
  
 ===== YUM ===== ===== YUM =====
Line 86: Line 86:
 ==== Overview ==== ==== Overview ====
  
-<fc #337dff>/​etc­/​yum.c­onf</​fc> ​ YUM config­uration file\\ +**/​etc­/​yum.c­onf**  YUM config­uration file\\ 
-<fc #337dff>/​etc­/​yu­m.r­epo­s.d</​fc> ​ all repo files+**/​etc­/​yu­m.r­epo­s.d**  all repo files
  
 ==== List ====  ==== List ==== 
  
-<fc #337dff>yum list</​fc> ​List package names from repositories\\ +**yum list** List package names from repositories\\ 
-<fc #337dff>yum list available</​fc> ​List all available packages\\ +**yum list available** List all available packages\\ 
-<fc #337dff>yum list inst­alled</​fc> ​List all installed packages\\ +**yum list inst­alled** List all installed packages\\ 
-<fc #337dff>yum list all</​fc> ​List installed and available packages\\ +**yum list all** List installed and available packages\\ 
-<fc #337dff>yum list kernel</​fc> ​List installed and available kernel packages\\+**yum list kernel** List installed and available kernel packages\\
  
 ==== Info ====  ==== Info ==== 
  
-<fc #337dff>yum info vsftpd</​fc> ​List info about vsftpd package\\+**yum info vsftpd** List info about vsftpd package\\
  
 ==== Search ====  ==== Search ==== 
  
-<fc #337dff>yum search samba</​fc> ​Find packages with samba in name or description ​+**yum search samba** Find packages with samba in name or description ​
  
-==== Download ​==== +==== Downgrade ​====
- +
-<fc #​337dff>​dnf install dnf-pl­ugi­ns-­core</​fc>​ install dnf core plugins\\ +
-<fc #​337dff>​dnf download packa­ge</​fc>​ download package +
-  +
-==== Install ====  +
- +
-<fc #​337dff>​dnf install packa­ge_­name</​fc>​ install package and depend­encies\\ +
-<fc #​337dff>​dnf install /​path­/​to­/​lo­cal­/​rpm</​fc>​ install local package and depend­encies\\ +
-<fc #​337dff>​dnf install /​path­/​to­/​fi­l</​fc>​e install package which provides /​path­/​to­/​file\\ +
-<fc #​337dff>​dnf reinstall packa­ge_­name</​fc>​ reinstall package and depend­encies\\ +
-<fc #​337dff>​dnf downgrade packa­ge_­name</​fc>​ downgrade package\\ +
-<fc #​337dff>​dnf mark install packa­ge_­name</​fc>​ marks the specified packages as installed by user.\\ +
-<fc #​337dff>​dnf unmark remove packa­ge_­name unmarks the specified packages as installed by user\\ +
-<fc #​337dff>​dnf mark group packa­ge_­name</​fc>​ marks the specified packages as installed by group +
- +
-==== History ====  +
- +
-<fc #​337dff>​dnf history list</​fc>​ list dnf transa­ctions history\\ +
-<fc #​337dff>​dnf history info trans­act­ion</​fc>​ show info of particular trans­action\\ +
-<fc #​337dff>​dnf history redo trans­act­ion</​fc>​ redo particular trans­action\\ +
-<fc #​337dff>​dnf history rollback trans­act­ion</​fc>​ rollback particular trans­action\\ +
-<fc #​337dff>​dnf history undo trans­act­ion</​fc>​ undo particular trans­action\\ +
-<fc #​337dff>​dnf history userin­sta­lled</​fc>​ show all instal­lonly packages, packages installed outside of DNF and packages not installed as dependency +
- +
-==== Update ====  +
- +
-<fc #​337dff>​dnf check-­upd­ate</​fc>​ check if updates available\\ +
-<fc #​337dff>​dnf upgrade</​fc>​ update packages to latest version\\ +
-<fc #​337dff>​dnf upgrad­e-m­ini­mal</​fc>​ update packages to major patchset and security\\ +
-<fc #​337dff>​dnf distro­-sync</​fc>​ update packages to latest version +
-  +
-==== Repository ====  +
- +
-<fc #​337dff>​dnf repolist --ena­ble­d|­--­dis­abl­ed­|-­-all</​fc>​ lists enabled, disabled or all known reposi­tories\\ +
-<fc #​337dff>​dnf repoqu­ery</​fc>​ searches the available DNF reposi­tories for selected packages\\ +
-<fc #​337dff>​dnf reposi­tor­y-p­ack­ages</​fc>​ run commands on top of all packages in the repository\\ +
-<fc #​337dff>​dnf config­-ma­nager --add-­rep­o=­URL</​fc>​ add remote repository +
- +
-==== Group ====  +
- +
-<fc #​337dff>​dnf group summary group</​fc>​ show overview of how many groups are installed and available\\ +
-<fc #​337dff>​dnf group info group</​fc>​ show package lists of a group\\ +
-<fc #​337dff>​dnf group install --with­-op­tional group</​fc>​ install packages the group contains\\ +
-<fc #​337dff>​dnf group list group</​fc>​ list all matching group\\ +
-<fc #​337dff>​dnf group remove group</​fc>​ remove those packages in the group\\ +
-<fc #​337dff>​dnf group upgrade group</​fc>​ upgrades the packages from the group and upgrades the group itself +
- +
-==== Uninstall ====  +
- +
-<fc #​337dff>​dnf remove packa­ge_­name</​fc>​ uninstall packa­ge_­name\\ +
-<fc #​337dff>​dnf autore­move</​fc>​ uninstall orphaned packages+
  
 +**yum downgrade packagename** downgrade a specific package\\
  
  
linux/yum_dnf.1609532712.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1