Skip to content

Fedora

Package manager

Fedora distro use the package manager DNF on the top of RPM

DNF

Enable deltaRPM

Bash
sudo nano /etc/dnf/dnf.conf
# Add
deltarpm=true

Enable fastestMirror

Bash
sudo nano /etc/dnf/dnf.conf
# Add
fastestmirror=true

Update packages

Bash
sudo dnf upgrade --refresh

Update repos list

Bash
dnf check-update

Install the package

Bash
dnf install <package>

Clean DNF

Bash
dnf autoremove

RPM

Install a RPM file

Bash
rpm -ivh <paquet.rpm>

Update a package from a RPM file

Bash
rpm -Uvh <paquet.rpm>

Uninstall a package

Bash
rpm -ev <package>

Grub

Update grub configuration

Bash
grub2-mkconfig -o "$(readlink -e /etc/grub2.conf)"

KVM

Nested VM

Verify if nestedVM is allow

Bash
# On Intel CPU
cat /sys/module/kvm_intel/parameters/nested
# On AMD CPU
cat /sys/module/kvm_amd/parameters/nested

To activate the option, first begin by shutdown all running VM. After we can disable the KVM module of the CPU.

Bash
# On Intel CPU
sudo modprobe -r kvm_intel
# On AMD CPU
sudo modprobe -r kvm_amd

Now we can edit the KVM configuration by adding an option

Bash
sudo nano /etc/modprobe.d/kvm.conf

# On Intel CPU
kvm_intel nested=1
# On AMD CPU
kvm_amd nested=1

And we finish the operation by rebooting the system.

TPM2 qemu

TPM2 is mandatory to install windows 11.

Installing swtpm a tpm emulator.

Bash
sudo dnf install swtpm swtpm-tools

TPM emulator in XML format.

XML
</devices>
    <tpm model='tpm-tis'>
        <backend type='emulator' version='2.0'/>
    </tpm>
</devices>

Sources