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!
Bookmarks