Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: rpm installer

  1. #1

    Default rpm installer

    Hello,
    I`m new to openSUSE i use Leap 42.1 and I have question.
    When I download rpm file I install it with zypper in {file}.rpm
    My question is there have a rpm installer like a gdebi for debian based distors ?
    I want to install rpm files directly without Konzole
    I Use KDE
    Thanks and sorry for my English!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,851

    Default Re: rpm installer

    Quote Originally Posted by qbasix View Post
    When I download rpm file I install it with zypper in {file}.rpm
    That should not happen too often. Most software is available in the standard repositories or in extra repositories and can thus easily be installed using YaST > Software.

    Installing RPMs you found "somewhere on the internet" has several drawbacks (like dependencies not automaticaly installing when available at all). The fact that you in those cases have to use the CLI probably is only minor to the other things you have to solve.

    But, IIRC, right click on an RPM file inside Dolphin should give you the possibility to use Software install/deinstall.
    Henk van Velden

  3. #3

    Default Re: rpm installer

    It is a problem to use often zypper in comand ?
    But, IIRC, right click on an RPM file inside Dolphin should give you the possibility to use Software install/deinstall.

    Sorry but I can`t find install/deinstall when I right click on rpm file.
    I just want when I doubleclik on prm start installing. Now when use doubleclick prm file is open with Ark.
    Is this a possible ?



  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,645

    Default Re: rpm installer

    Right click then "open with"

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,916
    Blog Entries
    2

    Default Re: rpm installer

    Quote Originally Posted by qbasix View Post
    It is a problem to use often zypper in comand ?

    Sorry but I can`t find install/deinstall when I right click on rpm file.
    I just want when I doubleclik on prm start installing. Now when use doubleclick prm file is open with Ark.
    Is this a possible ?


    There seems to be a bug associated with your KDE Desktop. I verified that a default KDE installs with Ark associated with RPM files
    On a system running LXDE, double-clicking on an RPM file correctly opens YAST Software Manager.

    To fix this file association in KDE,
    Open Dolphin.
    Find any RPM file (can be the one which is incorrectly opening in Ark).
    Rt-click and select "properties."
    Select the "File Type Options" button
    Click the "Add" button
    At the top of the window, enter the following line and then click "OK" button to lock in your new entry
    Code:
    /sbin/yast2 sw_single %F
    The above adds the YAST Add/Remove software and automatically gives it top priority, so

    You will now find that if you rt-click on any RPM file (using Dolphin) or double-click on any RPM file, the package will automatically open using YAST Software Manager.

    I've only done some superficial testing on a KDE machine to see if it works, but is not to be considered fully tested.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,163
    Blog Entries
    1

    Default Re: rpm installer

    Just to clarify further, this needs to be done with root privileges, so the command should look like
    Code:
    xdg-su -c "/sbin/yast2 sw_single %F"
    Also mentioned here...
    https://forums.opensuse.org/blog.php/122

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,916
    Blog Entries
    2

    Default Re: rpm installer

    Quote Originally Posted by deano_ferrari View Post
    Just to clarify further, this needs to be done with root privileges, so the command should look like
    Code:
    xdg-su -c "/sbin/yast2 sw_single %F"
    Also mentioned here...
    https://forums.opensuse.org/blog.php/122
    Yes, you can implement the "xdg-su -c" also, but curiously, I found that the graphical dialog box prompting the User to authorize elevated permissions was automatically invoked anyway.

    Perhaps the full command you quoted is better, but either way works.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,163
    Blog Entries
    1

    Default Re: rpm installer

    Quote Originally Posted by tsu2 View Post
    Yes, you can implement the "xdg-su -c" also, but curiously, I found that the graphical dialog box prompting the User to authorize elevated permissions was automatically invoked anyway.
    When I attempt to execute as regular user (KDE Plasma 5 environment), I don't get prompted for root credentials, but instead get the following meesage

    Root Privileges Needed

    This module must be run as root.
    If you continue now this module may not function properly.
    For example, some settings can be read improperly
    and it is unlikely that the settings can be written.

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,163
    Blog Entries
    1

    Default Re: rpm installer

    The difference in behaviour might be due to the .desktop file. I have
    Code:
    [Desktop Entry]
    Comment[en_GB]=
    Comment=
    Exec=xdg-su -c "/sbin/yast2 sw_single %F"
    GenericName[en_GB]=
    GenericName=
    MimeType=application/x-rpm;
    Name[en_GB]=Software Installer
    Name=Software Installer
    NoDisplay=true
    Path=
    StartupNotify=true
    Terminal=false
    TerminalOptions=
    Type=Application
    X-DBUS-ServiceName=
    X-DBUS-StartupType=
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    However, the following alternative does work (ie /sbin/yast2 sw_single %F) if I use 'X-KDE-SubstituteUID=true' and 'X-KDE-Username=root'
    Code:
    [Desktop Entry]
    Comment[en_GB]=
    Comment=
    Exec=/sbin/yast2 sw_single %F
    GenericName[en_GB]=
    GenericName=
    MimeType=application/x-rpm;
    Name[en_GB]=Software Installer
    Name=Software Installer
    NoDisplay=true
    Path=
    StartupNotify=true
    Terminal=false
    TerminalOptions=
    Type=Application
    X-DBUS-ServiceName=
    X-DBUS-StartupType=
    X-KDE-SubstituteUID=true
    X-KDE-Username=root

  10. #10

    Default Re: rpm installer

    I add
    Code:
    xdg-su -c "/sbin/yast2 sw_single %F"
    and now when i double click on my downloaded .rpm file ask me for password after I input my password installing start and everything is correctly
    Thank you very much for support.
    But with:
    Code:
    /sbin/yast2 sw_single %F 
    ask rooot privilege and installing was failed..

    Thnak you all.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •