Re: How to fix "dnf autoremove" on my system?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 23 Dec 2019 18:04:28 +0100
Manuel Reimer <mail+fedora@xxxxxxxxxxx> wrote:

> Hello,
> 
> I seem to be one of the users who has a somewhat "corrupted" package 
> database.
> 
> The system has been only upgraded so far and was initially installed 
> with "yum".
> 
> If I run "autoremove", then I get the following (long) list where
> surely not everything can be removed.
> 
> Can someone please prepare a command for me to mark the "relevant" 
> packages as "explicitly installed"?
> 
> List: https://pastebin.com/uanFQiAV

I'm not quite sure what you mean, as I haven't used the command
autoremove.

The way to correct a corrupted rpm database, is to run as sudo or su or
root the command:
rpm --rebuilddb
This tells rpm to look at the installed packages, and rebuild its db
using them.  All package managers use the rpm db, so this should fix any
packages that are installed but missing.

However, if murphy's law strikes and it doesn't, then I have attached a
dnf command that should work by reinstalling all the packages.  It is a
bash script, so it will need exec permissions.

If this still doesn't work, try replacing the reinstall with install in
the script.
#! /bin/bash

dnf reinstall \
 GeoIP-GeoLite-data-extra                    \
 NetworkManager-adsl                         \
 NetworkManager-bluetooth                    \
 NetworkManager-config-connectivity-fedora   \
 NetworkManager-ppp                          \
 NetworkManager-wwan                         \
 PackageKit-gstreamer-plugin                 \
 SuperLU                                     \
 abrt-addon-ccpp                             \
 abrt-addon-kerneloops                       \
 abrt-addon-pstoreoops                       \
 abrt-addon-vmcore                           \
 abrt-addon-xorg                             \
 abrt-cli                                    \
 abrt-desktop                                \
 abrt-gui                                    \
 abrt-gui-libs                               \
 abrt-plugin-bodhi                           \
 abrt-retrace-client                         \
 abrt-tui                                    \
 armadillo                                   \
 arpack                                      \
 autogen-libopts                             \
 avahi-autoipd                               \
 bind-libs                                   \
 bind-libs-lite                              \
 bind-utils                                  \
 blas                                        \
 bluez-cups                                  \
 boost-atomic                                \
 boost-random                                \
 celt051                                     \
 cfitsio                                     \
 clutter-gst2                                \
 compat-openssl10-pkcs11-helper              \
 corosync                                    \
 cryptsetup                                  \
 dbus-x11                                    \
 dcraw                                       \
 desktop-backgrounds-gnome                   \
 dracut-config-rescue                        \
 dump                                        \
 elfutils                                    \
 elfutils-libs                               \
 enca                                        \
 execstack                                   \
 f24-backgrounds-base                        \
 f24-backgrounds-gnome                       \
 f25-backgrounds-base                        \
 f25-backgrounds-gnome                       \
 f26-backgrounds-base                        \
 f26-backgrounds-gnome                       \
 firewall-config                             \
 firewalld                                   \
 firewalld-filesystem                        \
 fpaste                                      \
 freexl                                      \
 fwupdate-efi                                \
 fwupdate-libs                               \
 gamin                                       \
 gdal-libs                                   \
 geos                                        \
 glassfish-servlet-api                       \
 gmime                                       \
 gnome-abrt                                  \
 gnome-backgrounds-extras                    \
 gnutls-dane                                 \
 gnutls-utils                                \
 gperftools-libs                             \
 gtksourceview3                              \
 gtkspell3                                   \
 guile                                       \
 gvfs-smb                                    \
 hplip-gui                                   \
 ibus-wayland                                \
 icoutils                                    \
 ipset                                       \
 ipset-libs                                  \
 iwl100-firmware                             \
 iwl1000-firmware                            \
 iwl105-firmware                             \
 iwl135-firmware                             \
 iwl2000-firmware                            \
 iwl2030-firmware                            \
 iwl3160-firmware                            \
 iwl3945-firmware                            \
 iwl4965-firmware                            \
 iwl5000-firmware                            \
 iwl5150-firmware                            \
 iwl6000-firmware                            \
 iwl6000g2a-firmware                         \
 iwl6000g2b-firmware                         \
 iwl6050-firmware                            \
 iwl7260-firmware                            \
 js                                          \
 jwhois                                      \
 kf5-kcmutils                                \
 kf5-kdeclarative                            \
 kf5-kidletime                               \
 kf5-kpackage                                \
 kf5-kwayland                                \
 kwayland-integration                        \
 lapack                                      \
 ldns-utils                                  \
 libXfont                                    \
 libcryptui                                  \
 libdap                                      \
 libdhash                                    \
 libertas-usb8388-firmware                   \
 libgeotiff                                  \
 libgepub                                    \
 libglvnd-glx                                \
 libgovirt                                   \
 libgsystem                                  \
 libgta                                      \
 libidn                                      \
 libipa_hbac                                 \
 libkml                                      \
 libmicrohttpd                               \
 libmimic                                    \
 libreport-fedora                            \
 libreport-plugin-kerneloops                 \
 libreport-plugin-logger                     \
 libseccomp                                  \
 libspatialite                               \
 libsss_autofs                               \
 libsss_idmap                                \
 libsss_nss_idmap                            \
 libsss_sudo                                 \
 libucil                                     \
 libunicap                                   \
 libvirt-client                              \
 lirc-core                                   \
 lirc-libs                                   \
 mailx                                       \
 mesa-libGL                                  \
 mesa-libGLES                                \
 microcode_ctl                               \
 mozjs24                                     \
 nss-pem                                     \
 nss-softokn-freebl                          \
 ntsysv                                      \
 ogdi                                        \
 open-vm-tools                               \
 open-vm-tools-desktop                       \
 openCOLLADA                                 \
 openblas-openmp                             \
 opencc                                      \
 opencv-contrib                              \
 opencv-core                                 \
 openssh-server                              \
 pam-kwallet                                 \
 pam_pkcs11                                  \
 pcre-utf16                                  \
 perl-Data-Dump                              \
 perl-Filter                                 \
 perl-JSON-PP                                \
 perl-Module-CoreList                        \
 perl-Mojolicious                            \
 perl-Try-Tiny                               \
 perl-encoding                               \
 perl-libwww-perl                            \
 perl-open                                   \
 plasma-desktop-doc                          \
 plymouth-system-theme                       \
 plymouth-theme-charge                       \
 python2-asn1crypto                          \
 python2-augeas                              \
 python2-cffi                                \
 python2-coverage                            \
 python2-cryptography                        \
 python2-decorator                           \
 python2-html5lib                            \
 python2-iniparse                            \
 python2-kitchen                             \
 python2-ntplib                              \
 python2-olefile                             \
 python2-pillow                              \
 python2-ply                                 \
 python2-pyOpenSSL                           \
 python2-pycparser                           \
 python2-pygpgme                             \
 python2-reportlab                           \
 python2-rpm                                 \
 python2-sssdconfig                          \
 python2-systemd                             \
 python3-coverage                            \
 python3-dmidecode                           \
 python3-dnf-plugin-system-upgrade           \
 python3-dnf-plugins-extras-common           \
 python3-firewall                            \
 python3-iscsi-initiator-utils               \
 python3-javapackages                        \
 python3-qt5                                 \
 python3-qt5-base                            \
 python3-wrapt                               \
 qemu-guest-agent                            \
 qt-mysql                                    \
 qt5-qtscript                                \
 samba-client                                \
 samba-libs                                  \
 scim-libs                                   \
 sip                                         \
 sssd                                        \
 sssd-ad                                     \
 sssd-client                                 \
 sssd-common                                 \
 sssd-common-pac                             \
 sssd-ipa                                    \
 sssd-krb5                                   \
 sssd-krb5-common                            \
 sssd-ldap                                   \
 sssd-proxy                                  \
 totem                                       \
 traceroute                                  \
 trousers-lib                                \
 uboot-tools                                 \
 uriparser                                   \
 xorg-x11-drv-intel                          \
 xorg-x11-drv-openchrome                     
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux