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.
My Linux skills have been limited to a basic install, and getting around in the system. I've recently decided to take the O.S. more seriously and become a full time user and more of a Linux hobbyist. This is a place for me to post notes, and other helpful information. The information here is centered around Fedora and KDE but I do post about other GNU/Linux distributions. You can find useful notes, book reviews, tutorials, videos, and whatever else I think will be useful for learning this O.S.
Showing posts with label package manager. Show all posts
Showing posts with label package manager. Show all posts
Wednesday, April 8, 2015
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
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
Subscribe to:
Posts (Atom)