Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #197829

Re: An introduction to Debian's topology/structure/???

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: An introduction to Debian's topology/structure/???
Date 2018-07-20 23:10 +0200
Message-ID <wdKP0-3AB-15@gated-at.bofh.it> (permalink)
References (1 earlier) <wcVjr-6sV-1@gated-at.bofh.it> <wdfrP-1xG-1@gated-at.bofh.it> <wdiSJ-3Jx-5@gated-at.bofh.it> <wdjlL-3Sr-1@gated-at.bofh.it> <wdCoq-73D-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri 20 Jul 2018 at 07:07:34 (-0500), Richard Owlett wrote:
> On 07/19/2018 10:46 AM, Henrique de Moraes Holschuh wrote:
> >On Thu, 19 Jul 2018, David Wright wrote:
> >>While there are commands like   aptitude search   and   aptitude why
> >>available for such purposes, these are really designed for routine
> >>maintenance. For your purposes, I think you need to develop a more
> >>intimate relationship with the files in /var/lib/apt/lists/,
> >
> >or look at the utilities that the package dctrl-tools provides ;-)
> >
> 
> For my fellow newbies who come across this thread, the associated
> man pages are:
> 
> https://manpages.debian.org/stretch/dctrl-tools/grep-dctrl.1.en.html
>   grep-dctrl, grep-status, grep-available, grep-aptavail, grep-debtags
> https://manpages.debian.org/stretch/dctrl-tools/sort-dctrl.1.en.html
> https://manpages.debian.org/stretch/dctrl-tools/tbl-dctrl.1.en.html
>   generate tabular representations of data in dctrl format
> https://manpages.debian.org/stretch/dctrl-tools/sync-available.8.en.html
>   sync dpkg's available database with apt's database
> 
> GREP-DCTRL(1) says in part, "Use your imagination! The building
> blocks are there ..."
> 
> I believe it ;/ I suspect piping its output to tbl-dctrl will be
> interesting to say the least.

I'm not sure what tabulating it adds over a plain listing, unless
you intend it for documentation or publication.

But anyway, I found that defining a specific solution with
commands like these, combinations of commandline options etc.
was more difficult than a few lines of python once I had a
framework program that parsed the Debian control files into
suitable dictionaries.

Of course, this methodology is unsuitable for general release
unlike Debian's tools. But the skills one learns doing the work
onesself with shell and a programming language will be more
transferable to situations where Debian doesn't have a ready-built
tool. (eg the programs I use for smart editing of files en masse.)

BTW I'm slightly surprised you self-describe as a newbie.
You've been plugging away at Debian for years now and have
been reading voraciously in retirement.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-18 15:50 +0200
  Re: An introduction to Debian's topology/structure/??? Michael Stone <mstone@debian.org> - 2018-07-18 16:10 +0200
    Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-19 13:40 +0200
      Re: An introduction to Debian's topology/structure/??? Jochen Spieker <ml@well-adjusted.de> - 2018-07-19 15:40 +0200
        Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-19 16:30 +0200
        Re: An introduction to Debian's topology/structure/??? Brian <ad44@cityscape.co.uk> - 2018-07-20 01:50 +0200
          Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-20 12:40 +0200
      Re: An introduction to Debian's topology/structure/??? David Wright <deblis@lionunicorn.co.uk> - 2018-07-19 17:20 +0200
        Re: An introduction to Debian's topology/structure/??? Henrique de Moraes Holschuh <hmh@debian.org> - 2018-07-19 17:50 +0200
          Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-20 14:10 +0200
            Re: An introduction to Debian's topology/structure/??? David Wright <deblis@lionunicorn.co.uk> - 2018-07-20 23:10 +0200
              Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-21 17:50 +0200
        Re: An introduction to Debian's topology/structure/??? Richard Owlett <rowlett@cloud85.net> - 2018-07-19 18:40 +0200

csiph-web