Results 1 to 2 of 2

Thread: Obtaining package metadata from Ubuntu repositories

  1. #1
    Join Date
    Nov 2013
    Beans
    2

    Obtaining package metadata from Ubuntu repositories

    I have written a bash script that allows me to install deb packages from the Ubuntu repositories for a large number users whom I support. I have set up a database with fields that store the attributes of a package and which user requires this package (along with other control fields). The important fields are package name; description; and various user names. A typical (simplified) CSV type record would be:

    Field Names:Area,Category,Sub-Category,License,Package,Description,fred,tom,harr y,susan,sandi
    Record Data:Applications,Games,Arcade Games,Open Source,chromium-bsu,Space Aliens Arcade Game,y,y,y,n,n

    I have been building this database by hand and it is tedious. What I would like is some way to obtain the metadata that must be stored in the repositories. I want to know the categories and sub categories that show in the Ubuntu Software Centre, the friendly name of the package, the package name (it used to be in the old Software Centre but is missing in the new 16.04 Software Centre) and the description. For example, I want to extract from the repositories this information for a typical package:

    Category: Audio
    Sub-Category: Recorders
    License: Open Source
    Friendly Name: RecordMyDesktop
    Package Name: gtk-recordmydesktop
    Description: Adds an easy to use graphical icon on the GNOME toolbar to make screencasts with the video and audio capture application recordMyDesktop

    I know that both Synaptic Package Manager and the Ubuntu Software Centre can extract such info and it is must be from the same source as the package description appears to be consistant

    How do I do this?

    Thanks!



  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Obtaining package metadata from Ubuntu repositories

    I know how to list some of that from installed apps.
    http://superuser.com/questions/58530...ed-by-category
    dpkg-query -Wf='${package}\t${Section}\t${status}\n' | grep installed |
    gawk '{print $2"\t"$1}' | sort
    Also how to list applications you installed.
    http://askubuntu.com/questions/17823...alled-packages
    With compare
    https://unix.stackexchange.com/quest...alled-packages



    http://askubuntu.com/questions/65112...t935144_651123
    Application to show apps by category
    sudo apt-get install alacarte
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

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