Jaime Frutos Morales's blog

23/06/2009

How to install & use debtags

Filed under: SysAdmin, Ubuntu — acidborg @ 14:13

Debtags is a command line interface and maintenance tool for debtags’ information. It’s quite useful to search for deb packages with some specific tags.

To install it, run the following command:

apt-get install debtags

Here are some useful options offered by debtags:

  • Update all packages’ tags:

    debtags update

  • Check debtags’ database:

    debtags selfcheck

  • Show tags’ vocabulary:

    debtags tagcat

  • Show all tags:

    debtags tagcat | grep Tag: | awk {'print $2;'}

  • Show info about a package:

    debtags show package

    Result for debtags show bash:

    Package: bash
    Essential: yes
    Priority: required
    Section: shells
    Installed-Size: 1344
    Maintainer: Ubuntu Core developers
    Original-Maintainer: Matthias Klose
    Architecture: amd64
    Version: 3.2-5ubuntu1
    Replaces: bash-completion (<< 20060301-0), bash-doc (<= 2.05-1) Depends: base-files (>= 2.1.12), debianutils (>= 2.15)
    Pre-Depends: libc6 (>= 2.8), libncurses5 (>= 5.6+20071006-3)
    Recommends: bash-completion (>= 20060301-0)
    Suggests: bash-doc
    Conflicts: bash-completion (<< 20060301-0)
    Filename: pool/main/b/bash/bash_3.2-5ubuntu1_amd64.deb
    Size: 628764
    MD5sum: f71c09143a675a8daede1a668ee98941
    SHA1: 384ef13302e3f11d49399519fe7231c166d253fc
    SHA256: fe15a51dc70b4b0d5ed0556c670ffdf5b0297bb509480f22336684ee156b1d30
    Description: The GNU Bourne Again SHell
    Bash is an sh-compatible command language interpreter that executes
    commands read from the standard input or from a file. Bash also
    incorporates useful features from the Korn and C shells (ksh and csh).
    .
    Bash is ultimately intended to be a conformant implementation of the
    IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2).
    .
    The Programmable Completion Code, by Ian Macdonald, is now found in
    the bash-completion package.
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Origin: Ubuntu
    Task: minimal, mythbuntu-backend-master, mythbuntu-backend-slave, mythbuntu-desktop, mythbuntu-frontend

  • Show a package’s tags:

    debtags tag ls package

    Result for debtags tag ls bash

    implemented-in::c
    interface::shell
    role::program
    scope::utility
    suite::gnu
    uitoolkit::ncurses

  • Show packets similar or related to a given package:

    debtags related package -d 1

    Result for debtags related bash -d 1

    bash-minimal - The GNU Bourne Again SHell (minimal version)
    es - (short description not available)
    fish - a friendly interactive shell
    tcsh - TENEX C Shell, an enhanced version of Berkeley csh
    zsh-beta - A shell with lots of features (dev tree)

  • More packages are listed if you increment the value of -d.

  • Show packages with a given tag::

    debtags search tag

    For example, to obtain IPv6 enabled packages: debtags search tagprotocol::ipv6

  • Show packages with no tags:

    debtags todo

  • Show stats about packages’ tags:

    debtags stats

    Result for debtags stats in Ubuntu 9.04:

    Total count of packages: 34703
    Total count of packages (according to APT): 34703
    Total count of packages (according to Debtags): 32603
    Number of facets: 30
    Number of tags: 578
    Number of packages with tags, but no special::not-yet-tagged tags: 24547 (75.3%)
    Number of packages with special::not-yet-tagged tags: 8056 (24.7%)
    Number of packages with only special::not-yet-tagged tags: 2932 (9.0%)
    Number of packages with no tags: 0 (0.0%)


Advertisements

2 Comments

  1. Good luck in this new stage 😉

    Comment by Lucía — 23/06/2009 @ 22:15

  2. I just updated my Google Reader with your feed, so I will be able to get your latest NOT updates. xD

    Comment by Death Master — 23/06/2009 @ 23:06


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Blog at WordPress.com.

%d bloggers like this: