Right Click (RPM) >> Open With >> YaST

Rather than “Open With” Apper (which doesn’t work). Is there an added package needed for doing this? If so, which one, etc

Thanks

Do you mean that what you do in the title of this thread is not working? When that is the case, please describe what is the problem. Any errors or what?

Right click (on an RPM) to open with “Apper” doesn’t always work, as has been discussed a few times (“Your current backend does not support”) I remember someone saying you’re better off doing the same only with Yast anyway. How do you do that - get Yast in the right click “Open With” context menu?

Hello,

You can add an “open with YaST”.

In ~/.local/share/applications, add:

[Desktop Entry]
Encoding=UTF-8
Name=YaST Software Installer
Name[fr]=Installateur de logiciels YaST
GenericName=Install/Remove Software
GenericName[fr]=Installation et suppression de logiciels
Exec=xdg-su -c "/sbin/yast2 sw_single %F"
Icon=yast-sw_single
Terminal=false
Type=Application
Categories=System;PackageManager;X-SuSE-ControlCenter-System;
MimeType=application/x-rpm;application/x-redhat-package-manager;
StartupNotify=true
  • mimeapps.list
[Added Associations]
application/x-rpm=yast2-packager.desktop;

Then reopen Dolphin.

Regards,

Antoine

So, your question is, how do I get "open witth YaST in the list of offered applications? (I guess you allways can use the “OPen with …” item to open it with YaST.

I allways thought that that functions automaticaly. But I am running 13.1 and I have not installed Apper. My KDE System Settings > Filename Associations (or how it is called in English, I have a Dutch version), shows for *.rpm Ark and Software install/deinstall. The last one then should open YaST Software management.

Default 13.2 install seems to put Apper and Ark in there but not Yast and adding Yast just gave me a bouncing Yast icon that never loaded? Who knows. However…

Works. So that’s good to know for anyone else who gets the same. Thanks Antoine.

You’re welcome :wink:

Yes, indeed.

On 2014-12-09 19:16, 1Antoine1 wrote:
>
> Hello,
>
> You can add an “open with YaST”.
>
> In ~/.local/share/applications, add:
>
>
> - ‘yast2-packager.desktophttps://github.com/yast/yast-packager/blob/master/desktop/yast2-packager.desktop

Very interesting.

> Code:
> --------------------
> [Desktop Entry]
> Exec=xdg-su -c “/sbin/yast2 sw_single %F”
> --------------------

But was is my understanding that in 13.2 this call runs zypper instead of the GUI? Ah, I see, the syntax is different from the old one:


oS-13-2:~ # yast2 --install /var/cache/zypp/nfs_packages/LocalRPMs/wtf-20071004-2.1.noarch.rpm
DEPRECATED. Use zypper directly: zypper --non-interactive install /var/cache/zypp/nfs_packages/LocalRPMs/wtf-20071004-2.1.noarch.rpm
Loading repository data...
Reading installed packages...
'wtf = 0:20071004-2.1' is already installed.
No update candidate for 'wtf-20071004-2.1.noarch'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
oS-13-2:~ #

But “yast2 sw_single name.rpm” does install the package via GUI. Thanks, I wanted this feature.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

why not just use the terminal
for example installing Libreoffice


su -
cd /to/the/location/of/the/rpm

zypper in ProgramName.rpm 
--- or for office --
zypper in *.rpm

there is the handy
“open terminal here” in the r-click menu

On 2014-12-19 23:26, JohnVV wrote:
>
> why not just use the terminal

Because we like graphical tools and mice? :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)