[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: system rebuild preparation



On 10/20/2006 12:35 AM, Jude DaShiell wrote:
Does some way exist using debian tools to get a list of package names stripped of version information where all package names in that list have no form of parent by recommended dependencies or suggested dependencies? If I can build and maintain that kind of list in the future it should be possible to install those packages with recommended packages and rebuild the system using a compact packages list. The closest I've been able to come to this was something like: # apt-cache dumpavail | grep -i "package:" >packages.txt I suppose I could strip package: off with sed but I'll have every package installed on the system which is more than is needed.



From the aptitude manual: /usr/share/doc/aptitude/html/en/ch02s03.html

   !term
          Matches packages which do not match the term term. For
          instance, "!~b" selects packages that are not "broken".
[...]
   ~i
          Matches packages which are currently installed.

   ~M
          Matches packages which were automatically installed.


$ aptitude search '~i!~M'


HTH

--
paduille.4060.mumia.w@earthlink.net




Reply to: