Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an openSUSE server with lots of unnecessary packages installed, which I'd like to remove. However, I find that when I try to do that zypper often wants to install other packages in their place? Why on Earth do I need to install stuff to remove stuff? How do I just remove it?

For example, I want to uninstall all x11 packages so I run:

zypper rm xorg-x11*

I get this:

Resolving package dependencies...

The following packages are going to be upgraded:
  python-qt python-qt4 splashy suspend t1lib 

The following packages are going to be downgraded:
  libx86 qt3 

The following NEW packages are going to be installed:
  dbus-1-32bit file-32bit fontconfig-32bit freetype2-32bit libdrm-32bit 
libexpat1-32bit libgcc43-32bit libgcrypt11-32bit libglib-2_0-0-32bit 
libgpg-error0-32bit libgthread-2_0-0-32bit libjpeg-32bit liblcms1-32bit 
liblzo2-2-32bit libmng-32bit libpng12-0-32bit libqt4-32bit libqt4-sql-32bit 
libstdc++43-32bit libtiff3-32bit libuuid1-32bit pciutils-32bit pcre-32bit 
sysfsutils-32bit xorg-x11-libICE-32bit xorg-x11-libSM-32bit xorg-x11-libX11-32bit 
xorg-x11-libXau-32bit xorg-x11-libXext-32bit xorg-x11-libXfixes-32bit 
xorg-x11-libXmu-32bit xorg-x11-libXp-32bit xorg-x11-libXpm-32bit 
xorg-x11-libXprintUtil-32bit xorg-x11-libXrender-32bit xorg-x11-libXt-32bit 
xorg-x11-libXv-32bit xorg-x11-libfontenc-32bit xorg-x11-libs-32bit 
xorg-x11-libxcb-32bit xorg-x11-libxkbfile-32bit zlib-32bit 

The following packages are going to be reinstalled:
  DirectFB Mesa libQtWebKit4 libqt4-qt3support libqt4-x11 php5-gd 

The following packages are going to be REMOVED:
  xorg-x11-libICE xorg-x11-libSM xorg-x11-libX11 xorg-x11-libXau xorg-x11-libXext 
xorg-x11-libXfixes xorg-x11-libXmu xorg-x11-libXp xorg-x11-libXpm 
xorg-x11-libXprintUtil xorg-x11-libXrender xorg-x11-libXt xorg-x11-libXv 
xorg-x11-libfontenc xorg-x11-libs xorg-x11-libxcb xorg-x11-libxkbfile 

The following packages are going to change architecture:
  DirectFB Mesa libQtWebKit4 libqt4-qt3support libqt4-x11 libx86 php5-gd python-qt 
python-qt4 qt3 splashy suspend t1lib 

Overall download size: 34.9 M. After the operation, additional 1.9 M will be used.
Continue? [Y/n/p/?]: n
share|improve this question
up vote 3 down vote accepted

I don't have an OpenSUSE machine here to test on, but looks to be a dependency issue. You're attempting to remove something which something else depends on, so zipper is trying to satisfy those dependencies by installing other packages which it can use, in this case 32 bit equivalents.

On that basis I'd guess that the dependencies belong to some of these packages:

The following packages are going to change architecture:
  DirectFB Mesa libQtWebKit4 libqt4-qt3support libqt4-x11 libx86 php5-gd python-qt python-qt4 qt3 splashy suspend t1lib

For example, this is from ubuntu hardy, and shows the X11 library dependencies of php-gd.

Package: php5-gd
Source: php5
Version: 5.2.4-2ubuntu5
Depends: libc6 (>= 2.7-1), libfreetype6 (>= 2.3.5), libgd2-xpm (>= 2.0.35.dfsg), libjpeg62, libpng12-0 (>= 1.2.13-4), libt1-5, libx11-6, libxpm4, php5-common (= 5.2.4-2ubuntu5), phpapi-20060613, zlib1g (>= 1:
Description: GD module for php5

To remove all those packages, you'll have to remove everything that depends on them also.

share|improve this answer
Thanks, I think the "architecture-changing" packages are the key. I do wish there was a way to remove a given package and everything that depends on it! – EMP Aug 28 '09 at 12:47
My point was more do you really want to remove all those packages. What do you use this server for? – theotherreceive Aug 28 '09 at 14:06
It's a web server, so nobody will be running X on it. I might want php5-gd, but I'm not sure why it's dependent on X libraries at all. – EMP Aug 29 '09 at 1:08
Because it's an image library, so it depends on various X components that do images. – theotherreceive Aug 29 '09 at 13:41

i thing u can try using "YAST" and it remove all dependencies also there u'll get all info that packets

share|improve this answer
Thanks, I tried that, but couldn't really figure it out. The YaST interface for package management is actually less user-friendly than the command-line zypper, it seems. – EMP Aug 29 '09 at 1:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.