Showing posts with label package manager. Show all posts
Showing posts with label package manager. Show all posts

Wednesday, April 8, 2015

Link: zypper Cookbook Autoremove Packages and Remove Orphaned Packages

Doing some research on using zypper for package management and came across this well written informative piece. Thought I would share it here. 

As I learned how to autoremove unnecessary packages as you remove a package and also how to identify orphaned packages, I marveled at the beauty of zypper and the excellent work of all its contributors. Not only does zypper have the functionality to do just about anything related to repos and packages, it has sensible online help right at your fingertips.

Before I show how to perform these two tasks this post is primarily about, let me show you two easy ways to figure out whether zypper can do what you want to do.

Read the full article here.


Wednesday, October 9, 2013

Remove Part of a Software Package Without Removing All Dependencies.

If you install a program using yum and you don't like some of the dependencies, and you know the program will run without them. You can use this command to remove  them.

rpm --nodeps -e packagename

The command basically tells rpm not to check for dependencies --nodeps and the -e is for erase. Replace packagename with whatever your removing.

If you try and use yum to just remove the dependency, in most cases it will try to remove the entire package. Using rpm allows you to just remove the one or two dependencies you don't want and leaves the rest of the install intact.

Bloggers note: update 10/19/13, using this will give you a warning the next time you use yum.  

Warning: RPMDB altered outside of yum. 

Basically the warning is simply letting you know that the RPM database has been altered due to the dependency you removed with rpm and not using yum.
 
If you get this warning just use yum clean all