Under Construction
Removing RPM Packages
Of course, YUM can also be used to remove (deinstall) RPM packages. The command “yum remove” (or “yum erase”) can be used for this. Dependencies are also automatically resolved when RPM packages are removed. Dependent RPM packages are then automatically uninstalled as well.
To uninstall, simply enter the package name (or wildcard):
aix02 # yum remove libXrender
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package libXrender.ppc 0:0.9.8-3waixX11 will be erased
--> Processing Dependency: libXrender >= 0.9.5 for package: libXft-2.3.2-4waixX11.ppc
--> Processing Dependency: libXrender >= 0.9.5 for package: libXft-2.3.2-4waixX11.ppc
--> Processing Dependency: libXrender.a(libXrender.so.1) for package: libXft-2.3.2-4waixX11.ppc
--> Running transaction check
---> Package libXft.ppc 0:2.3.2-4waixX11 will be erased
--> Processing Dependency: libXft >= 2.3.2 for package: tk-8.6.11-1.ppc
--> Processing Dependency: libXft.a(libXft.so.2) for package: tk-8.6.11-1.ppc
--> Processing Dependency: libXft >= 2.3.2 for package: tk-8.6.11-1.ppc
--> Running transaction check
---> Package tk.ppc 0:8.6.11-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Removing:
libXrender ppc 0.9.8-3waixX11 @AIX_Toolbox 950 k
Removing for dependencies:
libXft ppc 2.3.2-4waixX11 @AIX_Toolbox 2.7 M
tk ppc 8.6.11-1 @AIX_Toolbox 8.2 M
Transaction Summary
========================================================================================================
Remove 3 Packages
Installed size: 12 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : tk-8.6.11-1.ppc 1/3
Erasing : libXft-2.3.2-4waixX11.ppc 2/3
Erasing : libXrender-0.9.8-3waixX11.ppc 3/3
Removed:
libXrender.ppc 0:0.9.8-3waixX11
Dependency Removed:
libXft.ppc 0:2.3.2-4waixX11 tk.ppc 0:8.6.11-1
Complete!
aix02 #
In the case shown, in addition to the specified libXrender RPM package, the dependent RPM packages libXft and tk were also uninstalled.
Since it is not always clear which RPM packages depend on an RPM package to be uninstalled, you should not use the “-y” option when uninstalling. After listing the RPM packages that are to be uninstalled (including all dependent RPM packages), you still have the option of canceling the process with “N“!
As with installing and updating, file names can also be specified instead of package names. Here, for example, the RPM package which contains the file /opt/freeware/bin/wget_32 is removed:
aix02 # yum remove /opt/freeware/bin/wget_32
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package wget.ppc 0:1.21.1-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Removing:
wget ppc 1.21.1-1 @AIX_Toolbox 1.4 M
Transaction Summary
========================================================================================================
Remove 1 Package
Installed size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : wget-1.21.1-1.ppc 1/1
Removed:
wget.ppc 0:1.21.1-1
Complete!
aix02 #