Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174241
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: [Aptitude-devel] aptitude ~A question |
| Date | 2016-11-06 14:20 +0100 |
| Message-ID | <sAvwB-5VD-3@gated-at.bofh.it> (permalink) |
| References | <sztdv-6nD-15@gated-at.bofh.it> <sztdv-6nD-13@gated-at.bofh.it> <sAq3T-2rB-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun 06 Nov 2016 at 08:18:52 (+0100), Steve wrote: > Hi Sven and Axel, > > Thank you for your explanation, I understand a bit better the logic. But > there is still something that doesn't quite match. Please consider the > following. > > apt-cache policy | grep 'a=' > release a=now > release v=14.04,o=LP-PPA-opencpn-opencpn,a=trusty,n=trusty,l=OpenCPN,c=main > release o=Debian Mozilla Team,a=jessie-backports,n=jessie-backports,l=Debian Mozilla Team,c=firefox-release > release v=8.6,o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free > release v=8.6,o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main > release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib > release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main > release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free > release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib > release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main > release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=contrib > release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=non-free > release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=main > > > Now let's plug the value of a in 'aptitude search ~A$a~i | wc -l': > > > a= aptitude search ~A[$a]~i | wc -l dpkg -l | grep ^ii | wc -l > trusty 16 > jessie$ 0 > jessie-backports 248 > stable 3243 > TOTAL 3507 3349 > now 3349 3349 > > > so 3507 ≠ 3349. Both figures should be equal as I understand. It seems > that some packages are counted two or more times or my calculation is > plain wrong. > > Thoughts? Piping to wc -l throws most of the information away. Redirect the output to files instead, thus: search jessie > /tmp/jessie ... repeated for others ... search total | sort > /tmp/total Now: cat /tmp/jessie /tmp/all-the-others | sort | diff -u - /tmp/total | less -S and see exactly what's going on. The lines starting with "-" are the ones which are in the concatenation of files but not in the total file. Vice versa for "+". Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [Aptitude-devel] aptitude ~A question Axel Beckert <abe@debian.org> - 2016-11-03 17:40 +0100
Re: [Aptitude-devel] aptitude ~A question Axel Beckert <abe@debian.org> - 2016-11-03 18:10 +0100
Re: [Aptitude-devel] aptitude ~A question Steve <dlist@bluewin.ch> - 2016-11-06 08:30 +0100
Re: [Aptitude-devel] aptitude ~A question Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-06 10:50 +0100
Re: [Aptitude-devel] aptitude ~A question steve <dlist@bluewin.ch> - 2016-11-06 20:50 +0100
Re: [Aptitude-devel] aptitude ~A question Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-07 09:10 +0100
Re: [Aptitude-devel] aptitude ~A question David Wright <deblis@lionunicorn.co.uk> - 2016-11-06 14:20 +0100
Re: [Aptitude-devel] aptitude ~A question steve <dlist@bluewin.ch> - 2016-11-06 21:00 +0100
Re: [Aptitude-devel] aptitude ~A question David Wright <deblis@lionunicorn.co.uk> - 2016-11-07 02:40 +0100
Re: [Aptitude-devel] aptitude ~A question steve <dlist@bluewin.ch> - 2016-11-14 14:10 +0100
Re: [Aptitude-devel] aptitude ~A question David Wright <deblis@lionunicorn.co.uk> - 2016-11-14 19:50 +0100
Re: [Aptitude-devel] aptitude ~A question Axel Beckert <abe@debian.org> - 2016-11-07 00:30 +0100
Re: [Aptitude-devel] aptitude ~A question steve <dlist@bluewin.ch> - 2016-11-14 14:20 +0100
RE:Package Ikeysis Walker <ikeysiswalker3@gmail.com> - 2016-11-07 01:10 +0100
csiph-web