I occasionally need to install a pattern, or see if I have a pattern installed -- things like that. Until now, I've been using Yast -- a great tool -- for this purpose. But all along I've had this nagging notion that I could do the same thing from the command line . . .
Showing posts with label zypper. Show all posts
Showing posts with label zypper. Show all posts
2013-10-29
2013-02-24
openSUSE: how to disable "delta RPM"
In order to save bandwidth, zypper is set by default to download so-called "delta RPMs", which are basically just binary patches. The process of applying the delta RPM can be, and often is, more time-consuming than downloading the full RPM.
To disable this behavior, edit the
As in the example above, set it to
To disable this behavior, edit the
/etc/zypp/zypp.conf file. There are lots of options there and one can learn quite a bit just by reading the comments. The option we are interested in is:## ## Whether to consider using a .delta.rpm when downloading a package ## ## Valid values: boolean ## Default value: true ## ## Using a delta rpm will decrease the download size for package updates ## since it does not contain all files of the package but only the binary ## diff of changed ones. Recreating the rpm package on the local machine ## is an expensive operation (memory,CPU). If your network connection is ## not too slow, you benefit from disabling .delta.rpm. ## download.use_deltarpm = false
As in the example above, set it to
false.2013-01-30
openSUSE: zypper - the basics and beyond
When you start to use openSUSE, the first thing you discover is YaST. Amazing tool that it is -- and I really do recommend learning about it because it can be invaluable -- many package management tasks are better suited to the command line. And with openSUSE that means zypper.
Get to know it, because you'll be using it a LOT. I recommend the following reading list:
Frequently forgotten
Get to know it, because you'll be using it a LOT. I recommend the following reading list:
zypper reading list
- For starters, read Chapter 8. Managing Software with Command Line Tools of the openSUSE 11.4 Reference (for some unfathomable reason, this material was left out of the 12.2 Reference)
- Then, dive in even deeper if you dare: SDB:Zypper usage 12.2
- Also, don't forget to learn about the
rpmcommand, because it has some listing functionality that is not duplicated inzypper-- take a look, e.g., at "RPM basics: querying the package database" right here at Smithfarm - the Brain. - SDB:Vendor change update
/etc/zypp/zypp.conf
zypper cheat sheet
Frequently forgotten
zypper commands:- zypper packages -i [REPO] (list all installed packages from REPO) Note on the 'i' and 'v' letters in the first column: the 'i' means "Installed", which is clear enough. The 'v' means "Another version installed", or in other words: multiple versions of this package are currently available from different repos _and_ a version from a different repo is installed. Note that this does not help if you want to list packages for which zypper shows the repo as "System Packages". In reality, these packages have no repo associated with them - i.e. they were installed from some repo that has since been removed.
- List packages not associated with any repo:
zypper se -s --installed|awk '/System Packages/ { print $3 }' - Remove all packages not associated with any repo (note: make sure to run
zypper upfirst!):zypper rm $(zypper se -s --installed|awk '/System Packages/ { print $3 }') - zypper search -s [STRING] (search for packages matching STRING and show details such as 'i'/'v' letters explained above, version, and repository name)
- zypper search --requires [STRING] (list packages that require packages matching STRING)
- zypper search --recommends [STRING] (list packages that recommend packages matching STRING)
- zypper packages --orphaned (list packages that were installed from repos that have since been removed)
- zypper rm --clean-deps (remove a package or packages along with all dependencies of these packages that are no longer needed)
openSUSE: How to uninstall GNOME?
Here's how I uninstalled GNOME from an openSUSE system. Actually, it was SLES11-SP2, but the procedure is the same for openSUSE.
First, I listed all GNOME-related packages I have installed:
It's a long list. I started from the bottom:
That gave me a long list of 35 packages to be removed. I clicked "y" for "yes".
Rinse and repeat until no GNOME packages are installed on your system.
First, I listed all GNOME-related packages I have installed:
# rpm -qa | grep gnome
It's a long list. I started from the bottom:
# zypper remove gnome-keyring
That gave me a long list of 35 packages to be removed. I clicked "y" for "yes".
Rinse and repeat until no GNOME packages are installed on your system.
Subscribe to:
Posts (Atom)