Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 964 Bytes

fedora.md

File metadata and controls

48 lines (37 loc) · 964 Bytes

package management

# Show transactions, take $transaction
dnf history list | head
# Show packages modified in $transaction, take $package
dnf history info $transaction
# Show installed and available versions, take $version
dnf --showduplicates list $package
# Rollback package version
dnf downgrade $package
# ||
dnf remove $package-$version

conflicts

  • file /foo from install foo-2 conflicts with file from package foo-1
rpm --erase  --nodeps foo-1
dnf upgrade -y --allowerasing --best

upgrade distro version

dnf install -y dnf-plugin-system-upgrade

dnf upgrade --refresh
dnf system-upgrade download --releasever=99
dnf system-upgrade reboot

dnf system-upgrade clean
dnf clean packages

free up space in root partition

docker system prune -a --volumes

for i in cache lib; do
    mkdir -p /home/var/"$i"
    mv /var/"$i"/dnf /home/var/"$i"
    ln -s /home/var/"$i"/dnf /var/"$i"/dnf
done