On Fri, 26 Jun 2020 at 20:20, Yasuhiro KIMURA wrote: > > From: Brian Inglis > Subject: Re: Listing only manually installed package > Date: Fri, 26 Jun 2020 11:20:26 -0600 > > > $ grep '\s1$' /etc/setup/installed.db # manual > > $ grep '\s0$' /etc/setup/installed.db # auto > > > > $ awk '1 == $3' /etc/setup/installed.db # manual > > $ awk '0 == $3' /etc/setup/installed.db # auto > > > > I can't remember what the pristine state of the Base category packages are, > > I've messed around with the setup files so much for so long. > > I checked /etc/setup/installed.db on my 32bit and 64bit console but in > each case all lines end with "0". Therefore, >
Just a data point: Csaba@AMDAHL ~ $ grep -c '\s1$' /etc/setup/installed.db 49 Csaba@AMDAHL ~ $ grep -c '\s0$' /etc/setup/installed.db 461 Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformant way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple