rpm and unwanted applications

hey everyone!

I’m using opensuse 12.1 KDE and i’m facing a strange problem. whenever i install an rpm file, Apper installs along with the rpm all the applications i have removed after the opensuse installation!

for example: i downloaded smplayer’s source, i created an rpm file, and when i installed it, apper install together all the games, ktorrent, kmail etc. and all the other apps that where removed. i don’t want those applications to be in my system, i just wanna install the *.rpm file.

any solutions??

Please do not use Apper. Use YaST > Software > software management or zypper.

i didnt actually chose to use apper, by default is the program that starts. how can i configure an rpm to automatically install with software management or zypper?

Uninstall apper and user zypper or yast

We know that you are forced in the direction of Apper by the devs, but we do not recommend it (and almost nobody here uses it).
Deinstalling it (as @VampirD advises) will refrain you from using it by accident.

I do not know what then the default application will be when you “click” on an RPM file, but you can allways configure that in KDE.
From the CLI use

yast -i whatever.rpm

My RPMs are keep in my local directory and I added that directory as
repository in yast.

Presumably, you’re clicking on the rpm file, and this launches the unwanted (software manager) application. It is possible to adjust via System Settings > File Associations, then enter ‘rpm’ in the search text box. Under the known types, you’ll see ‘application’. Select that, and you’ll see the ‘rpm’ file type. The default app will be displayed (along with other choices if they exist). Mine (openSUSE 11.4) shows ‘Install/Remove Software’, which actually uses the underlying command

package-manager --install %F

You can adjust or remove the preferred applications as required

For example, you could add this

/usr/bin/xdg-su -c '/sbin/yast2 --install %F'

Call it what you like, but it will use the yast package manager explicitly.

I hope this makes sense to you.