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

Thread: Packman migration complete

  1. #1
    Join Date
    May 2008
    Location
    Belgium
    Posts
    42

    Default Packman migration complete

    Well, we can pretty much say that the Packman migration is now complete.

    Repository layout
    As already explained in earlier posts, the repository structure has been changed. Before the migration, we only had one big, mean repository
    with everything in it, which had pros and cons:
    • pro: just one repository to add, can't be much simpler
    • con: it had everything and the kitchen sink, which also meant a high chance of conflicts with packages that ship with openSUSE releases as well as other repositories on download.o.o
    • con: the metadata of the repository (the stuff under repodata/) was pretty large and meant a few megabytes to download on each repository refresh


    The new layout is as follows (already explained, but just recapping here ), split into four repositories:
    • Essentials: contains what everyone needs (mplayer, smplayer, vlc, ffmpeg, gnome-mplayer, gstreamer, k3b-codecs, libxine1-codecs, mpg123, xmms, ... -- see here for a complete list), which is built for openSUSE 11.4, 11.3, 11.2, Tumbleweed, Evergreen (11.1) and Factory (snapshot)
    • Multimedia: contains many additional multimedia related applications (2ManDVD, audacious, audacity, bino, devede, dvdrip, gpodder, handbrake, k9copy, LiVES, kdenlive, ogmrip, puddletag, pinkytagger, qdvdauthor, xbmc, ... -- see here for a complete list), which is "only" built for openSUSE 11.4, 11.3 and 11.2
    • Extra: contains usually network related applications (aMule, amsn, deluge, gnunet, nicotine-plus, rtorrent, ... -- see here for a complete list), which is "only" built for openSUSE 11.4, 11.3 and 11.2
    • Games: says it all (package list), which is "only" built for openSUSE 11.4, 11.3 and 11.2


    The idea behind this, is that people can pick which packages they want from Packman. If you're only interested in codecs and audio/video players, then only add Essentials. If you want more, add more.

    Note that in any case, you must add the Essentials repository, as the other repositories (Multimedia, Extra and Games) build upon Essentials and if you don't, you will end up with unsatisfiable dependencies.

    Now, if you happen to prefer the "old way" and have just one repository to add to get everything from Packman, we have what you need as well, as we aggregate the package metadata of all the above mentioned repositories in a "top-level" repository.

    If we take openSUSE 11.4, this is what you would do to add e.g. Essentials and Multimedia:
    Code:
    zypper ar -r http://packman.inode.at/suse/openSUSE_11.4/Essentials/packman-essentials.repo
    zypper ar -r http://packman.inode.at/suse/openSUSE_11.4/Multimedia/packman-multimedia.repo
    If you want to add everything as a single repository, do this instead (no need to add Essentials separately in this case):
    Code:
    zypper ar -r http://packman.inode.at/suse/openSUSE_11.4/packman.repo
    Same goes for openSUSE_11.2 and openSUSE_11.3. You may also do the above for Factory, openSUSE_Tumbleweed and Evergreen_11.1, except that you won't be able to add the Multimedia repository as it does not exist for those (but both Essentials and the "big" repository do).

    Package signatures
    Most of you who have been using the Packman repository for some time probably remember the hassle that YaST and zypper were always complaining about NOKEY on the packages.

    The reason was that our packages were signed with a different key than the repository metadata.
    Zypper and YaST have a mechanism to import keys when you refresh a repository for the first time: it's when it prompts you whether you want to accept that key temporarily/always/etc...

    The problem for Packman is that it imports the key (repodata/repomd.xml.key) that is used to sign the repository metadata (repodata/repomd.xml.asc), but it doesn't have any mechanism to also import another key that is used to sign the RPM files (the signatures are inside the RPM files).

    We now implemented a mechanism to re-sign the packages with the same key as the one used for the repository metadata and, hence, there won't be any "NOKEY" warnings nor any need to install the package rpmkey-packman any more.

    On a side note, here is the relevant data about that key:
    • it's a 4096 bit RSA key
    • Key ID: 45A1D0671ABD1AFB (shows up as ID "1ABD1AFB" in RPM)
    • Key Name: PackMan Project (signing key) <packman@links2linux.de>
    • Key Fingerprint: F8875B880D518B6B8C530D1345A1D0671ABD1AFB
    • Key Created: Mon Sep 20 20:37:32 2010
    • Key Expires: Fri Sep 19 20:37:11 2014


    Apart from that, Marc Schiffbauer and I finished implementing a mechanism to prevent mirrors from pulling files while our OBS instance is pushing files into the same tree, which has lead to repositories being a bit corrupt/incomplete over the past week.

    As already explained, if you're missing a package that used to be in the Packman repository but isn't any more, please poke us (gently ) at packman@links2linux.de

    Mirrors
    The openSUSE package management stack only recently added support for client side configuration of mirrors, I didn't have time to implement it for Packman yet, and it doesn't apply to openSUSE below 11.4 either. Hence, you have to pick one of our mirrors yourself. Note that in this case, you cannot use the zypper ar -r way of adding repositories, as the URLs are hard-coded in that .repo file.

    Instead, proceed as follows, e.g. for openSUSE 11.4, using packman.unixheads.com in the US:
    Code:
    zypper ar -n packman-essentials http://packman.unixheads.com/suse/openSUSE_11.4/Essentials packman-essentials
    zypper ar -n packman-multimedia http://packman.unixheads.com/suse/openSUSE_11.4/Multimedia packman-multimedia
    or
    Code:
    zypper ar -n packman http://packman.unixheads.com/suse/openSUSE_11.4 packman

  2. #2
    Join Date
    Aug 2010
    Location
    Brazil
    Posts
    152

    Default Re: Packman migration complete

    I just love it!
    OpenSUSE KDE

    Dell Inspiron 1545 Intel

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,733

    Default Re: Packman migration complete

    I did the two zypper statements:
    Code:
    boven:~ # zypper ar -r http://packman.inode.at/suse/openSUSE_11.2/Essentials/packman-essentials.repo
    Adding repository 'Packman Essentials repository (openSUSE_11.2)' [done]                            
    Repository 'Packman Essentials repository (openSUSE_11.2)' successfully added                       
    Enabled: Yes                                                                                        
    Autorefresh: No                                                                                     
    URI: http://packman.inode.at/suse/openSUSE_11.2/Essentials                                          
    
    boven:~ # zypper ar -r http://packman.inode.at/suse/openSUSE_11.2/Multimedia/packman-multimedia.repo -n 'Packman Multimedia'                                                                                                            
    Adding repository 'Packman Multimedia repository (openSUSE_11.2)' [done]                                            
    Repository named 'packman' already exists. Please use another alias.
    And
    Code:
    boven:~ # zypper lr -d
    #  | Alias                                                                                   | Name                                                                                    | Enabled | Refresh | Priority | Type   | URI                                                                                     | Service
    ---+-----------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+---------+---------+----------+--------+-----------------------------------------------------------------------------------------+--------
    1  | KDE_Backports                                                                           | KDE Backports                                                                           | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Backports/openSUSE_11.2                  |
    2  | KDE_Stable                                                                              | KDE Stable                                                                              | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/KDE4:/STABLE:/Desktop/openSUSE_11.2      |
    3  | Kernel_                                                                                 | Kernel                                                                                  | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_11.2/                   |
    4  | download.nvidia.com-opensuse                                                            | NVIDIA Repository                                                                       | No      | Yes     |   98     | rpm-md | ftp://download.nvidia.com/opensuse/11.2/                                                |
    5  | download.videolan.org-SuSE                                                              | VideoLan Repository                                                                     | No      | Yes     |   99     | rpm-md | http://download.videolan.org/pub/videolan/vlc/SuSE/11.2/                                |
    6  | http-download.opensuse.org-ee3cb2f9                                                     | Updates for openSUSE 11.2-0                                                             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.2/                                               |
    7  | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.2                | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.2                | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_11.2                |
    8  | http://download.opensuse.org/repositories/home:/Zigmund_Freud:/playground/openSUSE_11.2 | http://download.opensuse.org/repositories/home:/Zigmund_Freud:/playground/openSUSE_11.2 | No      | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/home:/Zigmund_Freud:/playground/openSUSE_11.2 |
    9  | openSUSE 11.2-0                                                                         | openSUSE 11.2-0                                                                         | No      | No      |   99     | yast2  | cd:///                                                                                  |
    10 | packman                                                                                 | Packman Essentials repository (openSUSE_11.2)                                           | Yes     | Yes     |   99     | rpm-md | http://packman.inode.at/suse/openSUSE_11.2/Essentials                                   |
    11 | packman.inode.at-suse                                                                   | Packman Repository OUD                                                                  | No      | Yes     |   99     | rpm-md | http://packman.inode.at/suse/11.2/                                                      |
    12 | repo-debug                                                                              | openSUSE-11.2-Debug                                                                     | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/11.2/repo/oss/                          |
    13 | repo-non-oss                                                                            | openSUSE-11.2-Non-Oss                                                                   | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.2/repo/non-oss/                            |
    14 | repo-oss                                                                                | openSUSE-11.2-Oss                                                                       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/11.2/repo/oss/                                |
    15 | repo-source                                                                             | openSUSE-11.2-Source                                                                    | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/11.2/repo/oss/                         |
    boven:~ #
    shows that #10 has the alias packman allready and that is the Essentials one. It seems that both .repo files use the same alias, but the aliases must be unique.
    Henk van Velden

  4. #4
    Join Date
    May 2008
    Location
    Belgium
    Posts
    42

    Default Re: Packman migration complete

    Quote Originally Posted by hcvv View Post
    I did the two zypper statements:
    [...]
    Repository named 'packman' already exists. Please use another alias.
    Indeed, thanks for pointing that out.

    Fixed on our primary server, will take up to one hour for the fix to hit the mirrors.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,733

    Default Re: Packman migration complete

    You are welcome.
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: Packman migration complete

    Thanks for explanation. It seems to be working well here, and on 11.4 it's fast.

  7. #7
    Join Date
    Mar 2010
    Location
    Southern Europe
    Posts
    352

    Default Re: Packman migration complete

    Thanks a lot for all the work you do for us.
    Packman is really amazing.

  8. #8

    Default Re: Packman migration complete

    GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)


    i started getting this after i added the repo(s)

  9. #9

    Default Re: Packman migration complete

    One thing I'm slightly confused about is how to handle non-Essential packages when using Tumbleweed. If I am tracking the Tumbleweed repository, then I need to be using the Tumbleweed version of Packman Essentials. That much is clear.

    But if I want to install puddletag, should I simply activate the 11.4 version of the Packman Multimedia repository in addition to Packman Essentials for Tumbleweed? That seems potentially problematic, but I don't see another way at the moment.

  10. #10
    Join Date
    Jan 2009
    Location
    Somewhere in Fictionland
    Posts
    1,479

    Default Re: Packman migration complete

    O.K. i waited a bit but it seams that I have some more consistent problem.
    When trying to update via yast the repo files I get the following error (example for 1 file but they are all the same):
    Code:
    Subprocess failed. Error: RPM non riuscito:error: /var/cache/zypp/packages/Packman_Evergreen_Essentials_1/Essentials/i586/libvpx0-0.9.6-1.pm.4.1.i586.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 1abd1afb
    error: /var/cache/zypp/packages/Packman_Evergreen_Essentials_1/Essentials/i586/libvpx0-0.9.6-1.pm.4.1.i586.rpm cannot be installed
    I then tried to do with zypper:
    Code:
    # zypper ar -r http://packman.inode.at/suse/Evergreen_11.1/
    Problem parsing the file at the specified URI:
    /var/adm/mount/AP_0x0000000c/suse/Evergreen_11.1: Key in line 1 contains whitespace
    Is it a .repo file? See http://en.opensuse.org/Standards/RepoInfo for details.
    So it appears something goes wrong here with the key. But it "should" be right, as I followed the right links and indications. Maybe there is still some tech-problem with that repo?
    Any further advice?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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