Skip to main content

Linux command: dnf

DNF is a software package manager

Notes while using DNF — software package manager — on Fedora Workstation 30.

dnf Cheat Sheet

dnf install -y packagename1 packagename2
dnf reinstall -y packagename
dnf remove -y packagename
dnf search packagename

Examples

Count number of packages

[tuyen@g73jh ~]$ dnf list | wc -l
58683
[tuyen@g73jh ~]$

Count number of installed packages

[tuyen@g73jh ~]$ dnf list --installed | wc -l
1802
[tuyen@g73jh ~]$ 

Search for 'dynamips' package

[tuyen@g73jh ~]$ dnf search dynamips
Last metadata expiration check: 0:24:44 ago on Wed 18 Sep 2019 10:51:38 AM +07.
======================== Name Exactly Matched: dynamips ========================
dynamips.x86_64 : Cisco Router Emulator
[tuyen@g73jh ~]$ 

Check if 'bison' package is installed

[tuyen@g73jh ~]$ dnf list --installed | grep bison
[tuyen@g73jh ~]$

Check if 'gcc' package is installed

[tuyen@g73jh ~]$ dnf list --installed | grep gcc
gcc.x86_64                                        9.2.1-1.fc30                        @updates                    
gcc-gdb-plugin.x86_64                             9.2.1-1.fc30                        @updates                    
libgcc.i686                                       9.2.1-1.fc30                        @updates                    
libgcc.x86_64                                     9.2.1-1.fc30                        @updates                    
[tuyen@g73jh ~]$ 

Popular posts from this blog

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.

stegseek: Notes

StegCracker has been retired following the release of StegSeek, which will blast through the rockyou.txt wordlist within 1.9 second as opposed to StegCracker which takes ~5 hours.

VMware ESXi host loads ipmi_si_drv too long

Workaround: remove ipmi_si_drv esxcli software vib remove --dry-run --vibname ipmi-ipmi-si-drv esxcli software vib remove --vibname ipmi-ipmi-si-drv ~ # esxcli software vib remove --dry-run --vibname ipmi-ipmi-si-drv Removal Result    Message: Dryrun only, host not changed. The following installers will be applied: [BootBankInstaller]    Reboot Required: true    VIBs Installed:    VIBs Removed: VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.550.0.0.1331820    VIBs Skipped: ~ # ~ # esxcli software vib remove --vibname ipmi-ipmi-si-drv Removal Result    Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.    Reboot Required: true    VIBs Installed:    VIBs Removed: VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.550.0.0.1331820    VIBs Skipped: ~ #