Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #262168
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How can I find packages manually installed using "dpkg -i"? |
| Date | 2023-10-05 06:20 +0200 |
| Message-ID | <Hlo09-dCZO-1@gated-at.bofh.it> (permalink) |
| References | <Hko2d-d0Pd-1@gated-at.bofh.it> <Hl0hb-do79-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue 03 Oct 2023 at 19:58:57 (-0700), Mike Castle wrote:
> Some tools I've been using lately are apt-mark and "dpkg-query --show".
>
> The following UNTESTED commands (ran as a normal user):
>
> (apt-mark showauto ; apt-mark showmanual) > apt-thinks-you-installed.txt
> dpkg-query --show --showformat='${Package}\n' | grep -v -F -f
> apt-thinks-you-installed.txt > rest.txt
(I've added the omitted -f.)
> The file "rest.txt" should have a list of packages installed that were
> NOT installed via apt. With any luck, it is small enough to examine
> manually.
I don't think your grep will work correctly. apt-thinks-you-installed.txt
contains patterns, and some of those patterns are very short, for example:
an at bc dc di gv jq mc pv tk acl ant apt bbe cpp ftp git gpg gpm kbd
lz4 mbr mpv mtr pia sed sox tar tcl ucf ufw ure vim w3m xli xxd zip.
These will match packages in the dpkg-query whose names don't actually
appear as complete strings in apt-thinks-you-installed.txt. For example,
pv is in mpv, bbe is in librubberband2. "an" and "at" occur in scores
of package names.
I think you need to enclose each pattern (ie each line of
apt-thinks-you-installed.txt) in the anchors, ^ and $. Ironically,
it would be trivial to add these characters to the output of
dpkg-query, but that's not where they're needed.
Cheers,
David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can I find packages manually installed using "dpkg -i"? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2023-10-02 12:10 +0200
Re: How can I find packages manually installed using "dpkg -i"? <tomas@tuxteam.de> - 2023-10-02 12:20 +0200
Re: How can I find packages manually installed using "dpkg -i"? "Marco M." <mm@dorfdsl.de> - 2023-10-02 12:20 +0200
Re: How can I find packages manually installed using "dpkg -i"? Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> - 2023-10-02 15:30 +0200
Re: How can I find packages manually installed using "dpkg -i"? "Marco M." <mm@dorfdsl.de> - 2023-10-02 15:50 +0200
Re: How can I find packages manually installed using "dpkg -i"? The Wanderer <wanderer@fastmail.fm> - 2023-10-02 15:50 +0200
Re: How can I find packages manually installed using "dpkg -i"? Greg Wooledge <greg@wooledge.org> - 2023-10-02 16:00 +0200
Re: How can I find packages manually installed using "dpkg -i"? <tomas@tuxteam.de> - 2023-10-02 16:10 +0200
Re: How can I find packages manually installed using "dpkg -i"? David Wright <deblis@lionunicorn.co.uk> - 2023-10-03 06:30 +0200
Re: How can I find packages manually installed using "dpkg -i"? <tomas@tuxteam.de> - 2023-10-03 08:30 +0200
Re: How can I find packages manually installed using "dpkg -i"? The Wanderer <wanderer@fastmail.fm> - 2023-10-02 16:10 +0200
Re: How can I find packages manually installed using "dpkg -i"? Max Nikulin <manikulin@gmail.com> - 2023-10-02 13:00 +0200
Re: How can I find packages manually installed using "dpkg -i"? Mike Castle <dalgoda+debian@gmail.com> - 2023-10-04 05:00 +0200
Re: How can I find packages manually installed using "dpkg -i"? Mike Castle <dalgoda+debian@gmail.com> - 2023-10-04 05:20 +0200
Re: How can I find packages manually installed using "dpkg -i"? Max Nikulin <manikulin@gmail.com> - 2023-10-04 09:50 +0200
Re: How can I find packages manually installed using "dpkg -i"? David Wright <deblis@lionunicorn.co.uk> - 2023-10-05 06:20 +0200
Re: How can I find packages manually installed using "dpkg -i"? John Crawley <john@bunsenlabs.org> - 2023-10-05 08:10 +0200
Re: How can I find packages manually installed using "dpkg -i"? Greg Wooledge <greg@wooledge.org> - 2023-10-05 13:00 +0200
csiph-web