Results 1 to 2 of 2

Thread: Obtaining package metadata from Ubuntu repositories

  1. #1
    Join Date
    Nov 2013

    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?


  2. #2
    Join Date
    Jun 2009
    SW Forida

    Re: Obtaining package metadata from Ubuntu repositories

    I know how to list some of that from installed apps.
    dpkg-query -Wf='${package}\t${Section}\t${status}\n' | grep installed |
    gawk '{print $2"\t"$1}' | sort
    Also how to list applications you installed.
    With compare
    Application to show apps by category
    sudo apt-get install alacarte
    For more info on UEFI boot install & repair - Regularly Updated :
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.


Posting Permissions

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