Results 1 to 9 of 9

Thread: What's the zypper's analog to apt-key command?

  1. #1
    Join Date
    Nov 2014
    Location
    Kiev, Ukraine
    Posts
    68

    Default What's the zypper's analog to apt-key command?

    Hello!

    Sorry for some noise, but can't remind myself what's the zypper's analog to apt-key command?

    Example:

    Code:
    # apt-key adv --keyserver keyserver.blablabla.com --recv XXXXXXXX
    Most of docs for external software describe installing algos for Debian/Ubuntu distro's only (unfortunately). And sometimes it takes a lot of time to convert dpkg/apt commands to zypper's analogs in mind, when you read the docs.

    So, some help 'll be appreciated here. Thanks!

  2. #2

    Default Re: What's the zypper's analog to apt-key command?

    Hi,

    I'm not sure what you're looking for but have a look at the Rosetta file

    Code:
    https://wiki.archlinux.org/index.php/Pacman/Rosetta
    Good luck...
    "Unfortunately time is always against us" -- [Morpheus]

    .:https://github.com/Jetchisel:.

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,195
    Blog Entries
    3

    Default Re: What's the zypper's analog to apt-key command?

    I've never use "apt-key". But maybe check the man page for "rpmkeys".
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: What's the zypper's analog to apt-key command?

    it that's a method for importing a package key, opensuse (and other rpm based distro's) it's done by the rpm command not zypper
    Code:
    rpm --import /path/to/keyfile
    http://doc.opensuse.org/documentatio...m.package_auth
    most of the time this is not needed if a repository has been properly configured just by adding it you import it's key
    for example adding packman for 42.1 with zypper
    Code:
    zypper ar -f ftp://packman.inode.at/suse/openSUSE_Leap_42.1/ packman
    zypper imports packman's digital key from ftp://packman.inode.at/suse/openSUSE...repomd.xml.key
    you only need to use rpm --import if a software vendor has not configured a proper repository, like adobe or google do, while google does provide it's sign key adobe does not

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,344
    Blog Entries
    15

    Default Re: What's the zypper's analog to apt-key command?

    Hi
    Just use gpg to grab a key from the key server and import, if you adding an openSUSE repo, use the -g option when adding.

    See https://forums.opensuse.org/showthre...light=yast+gpg

    For zypper;
    Code:
    zypper ar -f -g -n "some_repo_name" http://some_repo_url some_repo_name
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Nov 2014
    Location
    Kiev, Ukraine
    Posts
    68

    Default Re: What's the zypper's analog to apt-key command?

    Quote Originally Posted by jetchisel View Post
    Hi,

    I'm not sure what you're looking for but have a look at the Rosetta file

    Code:
    https://wiki.archlinux.org/index.php/Pacman/Rosetta
    Good luck...
    Wow! Excellent table, thanks, although contains no 'apt-key' substring. Have put in bookmarks!

  7. #7
    Join Date
    Nov 2014
    Location
    Kiev, Ukraine
    Posts
    68

    Default Re: What's the zypper's analog to apt-key command?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Just use gpg to grab a key from the key server and import, if you adding an openSUSE repo, use the -g option when adding.

    See https://forums.opensuse.org/showthre...light=yast+gpg

    For zypper;
    Code:
    zypper ar -f -g -n "some_repo_name" http://some_repo_url some_repo_name
    Yes, thanks!

  8. #8
    Join Date
    Nov 2014
    Location
    Kiev, Ukraine
    Posts
    68

    Default Re: What's the zypper's analog to apt-key command?

    Quote Originally Posted by I_A View Post
    it that's a method for importing a package key, opensuse (and other rpm based distro's) it's done by the rpm command not zypper
    Code:
    rpm --import /path/to/keyfile
    http://doc.opensuse.org/documentatio...m.package_auth
    most of the time this is not needed if a repository has been properly configured just by adding it you import it's key
    for example adding packman for 42.1 with zypper
    Code:
    zypper ar -f ftp://packman.inode.at/suse/openSUSE_Leap_42.1/ packman
    zypper imports packman's digital key from ftp://packman.inode.at/suse/openSUSE...repomd.xml.key
    you only need to use rpm --import if a software vendor has not configured a proper repository, like adobe or google do, while google does provide it's sign key adobe does not
    ok, so direct analog is 'rpm --import'. Or rpmkeys. Got it.

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

    Default Re: What's the zypper's analog to apt-key command?

    Don't overlook the case that zypper also uniquely(compared to other package management systems AFAIK) supports automatically accepting keys, so you can skip importing keys in preparation for adding the repo

    I wrote the following wiki page which provides examples for a few of my most useful zypper options

    https://en.opensuse.org/User:Tsu2/BASH_zypper

    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!

Posting Permissions

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