Skip to main content

yum autoremove

English

Yum has autoremove feature since 2010 but there is a simple command to do so:
yum autoremove
Here is quick example below.

Français

Yum a l'abilit&eacut; d'"autoremove" depuis 2010 mais il existe une commande plus simple sur la version recente 3.4.3:
yum autoremove
Voici un exemple ci-dessous
 
$ su -c "yum autoremove" 
Loaded plugins: langpacks, presto, refresh-packagekit 
Resolving Dependencies --> 
Running transaction check ---> 
Package gnokii.x86_64 0:0.6.31-4.fc18 will be erased ---> 
Package net-snmp.x86_64 1:5.7.2-5.fc18.1 will be erased --> 
Finished Dependency Resolution --> 
Finding unneeded leftover dependencies ---> 
Marking lm_sensors-libs to be removed - no longer needed by net-snmp ---> 
Marking net-snmp-agent-libs to be removed - no longer needed by net-snmp 
Found and removing 2 unneeded dependencies --> 
Running transaction check ---> 
Package lm_sensors-libs.x86_64 0:3.3.2-5.fc18 will be erased ---> 
Package net-snmp-agent-libs.x86_64 1:5.7.2-5.fc18.1 will be erased --> 
Finished Dependency Resolution Dependencies Resolved ================================================================================ 
Package Arch Version Repository Size ================================================================================ 
Removing: 
gnokii x86_64 0.6.31-4.fc18 @updates 2.0 M 
net-snmp x86_64 1:5.7.2-5.fc18.1 @updates 874 k 
Removing for dependencies: 
lm_sensors-libs x86_64 3.3.2-5.fc18 @fedora 60 k 
net-snmp-agent-libs x86_64 1:5.7.2-5.fc18.1 @updates 2.0 M 

Transaction Summary
================================================================================ 
Remove 2 Packages (+2 Dependent packages) 
Installed size: 4.9 M 
Is this ok [y/N]: y 

Downloading Packages: 
Running Transaction Check 
Running Transaction 
Test Transaction 
Test Succeeded 
Running Transaction 
Erasing : 1:net-snmp-5.7.2-5.fc18.1.x86_64 1/4 
Erasing : 1:net-snmp-agent-libs-5.7.2-5.fc18.1.x86_64 2/4 
Erasing : lm_sensors-libs-3.3.2-5.fc18.x86_64 3/4 
Erasing : gnokii-0.6.31-4.fc18.x86_64 4/4 
Verifying : 1:net-snmp-agent-libs-5.7.2-5.fc18.1.x86_64 1/4 
Verifying : lm_sensors-libs-3.3.2-5.fc18.x86_64 2/4 
Verifying : 1:net-snmp-5.7.2-5.fc18.1.x86_64 3/4 
Verifying : gnokii-0.6.31-4.fc18.x86_64 4/4 

Removed: 
gnokii.x86_64 0:0.6.31-4.fc18 
net-snmp.x86_64 1:5.7.2-5.fc18.1 

Dependency Removed: 
lm_sensors-libs.x86_64 0:3.3.2-5.fc18 
net-snmp-agent-libs.x86_64 1:5.7.2-5.fc18.1 
Complete



$ yum --version
3.4.3
  Installed: rpm-4.10.3.1-1.fc18.x86_64 at 2013-02-10 20:58
  Built    : Fedora Project at 2013-02-06 09:54
  Committed: Panu Matilainen at 2013-02-06

  Installed: yum-3.4.3-53.fc18.noarch at 2013-04-06 19:25
  Built    : Fedora Project at 2013-03-25 14:46
  Committed: Zdenek Pavlas at 2013-03-25

Comments

Ahmad Azkan said…
Thanks mate for the tip.
Have been rpming the hard way since ages
kparal said…
Thanks a lot. Time to document the command:
https://bugzilla.redhat.com/show_bug.cgi?id=951839

Popular posts from this blog

Running amdgpu driver on AMD hybrid laptop

Running the ASUS X550ZE laptop on latest Linux kernel 4.9 series from Mystro256 Copr repository based on AMD contributor Alexander Deucher's freedesktop branch within Fedora Design Suite 25.

The hybrid support has improved now that the dedicated graphic card AMD R5 M230 Jet Pro (aka Hainan) is functional with enabled amdgpu module for both Sea Island (CIK) and South Island (SI) videocards thanks to the hard work from AMD developers. The latter was important in order to fully support all GCN (Graphics Core Next) chipsets as possible to allow future run on open source version of Vulkan, RADV (short for Radeon Vulkan).

The power manager is functional and further optimization will be required in term on parity with Microsoft Windows version. According to Freedesktop Radeon list almost all features are implemented into the driver, hybrid graphic cards run fine, only OpenGL needs more work. As the desktop ecosystem in the freedesktop environment modernize to support Wayland protocole, a…

Running Sapphire Pulse Radeon RX 560 4GB on Fedora 27 Beta

I bought a Sapphire PulseRadeon RX 560 4GB to replace the broken Nvidia GTX 460 v2 after a long years of service. It is then my first ever dedicated AMD based video-card for a desktop.

The boot sequence on Fedora 27 hit a problem: a plain blank screen suggesting the card is not yet supported. Looking at Phoronix website revealed one of possible requirement missed: LLVM 5.0 which is currently not available to Fedora repository save a failed built. I filed a bug report to address the issue. Hopefully that will land on time for the official release of Fedora 27.

Running Sapphire Radeon RX 560 on Fedora 27 beta (follow up)

Following the previous blog and some investigation, it turned out the kernel package from Mystro256 COPR repository based on agd5f kernel branch (one of AMD developers) resolves the blank screen issue. That could trigger a problem for users having a new AMD graphic hardware so perhaps a warning should be written on the release. Perhaps having one of contributors be part of kernel team bringing these improvement until those patches arrive to the mainline kernel for a better user experience.

Past the issue, the desktop experience with Radeon RX 560 was tremendously improved compared to the retired GTX 460 v2. Gnome on Wayland on Fedora runs smooth showing how far the open source amdgpu driver went through compared to previous years. That was also the opportunity to run a vulkan based smoke test demo on RADV, which is a counterpart of glxgears.

Overall the card is excellent once missing software are installed.