On Sun July 14 2019 19:21:06 Felix Miata wrote:
Is it normal for non-iis not to be reduced to 0? How to get rid of the numerous rcs?
dpkg --purge ...
Mike Bird composed on 2019-07-14 19:28 (UTC-0700):
Felix Miata wrote:
Is it normal for non-iis not to be reduced to 0? How to get rid of the numerous rcs?
dpkg --purge ...
# dpkg -l | grep '^rc' | wc -l 125 # dpkg --purge ... dpkg: error: --purge needs a valid package name but '...' is not: illegal package name in specifier '...': must start with an alphanumeric character
Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! #
Surely there must be a way that doesn't involve finding and typing 125 package names.
On Sun July 14 2019 20:02:27 Felix Miata wrote:
Mike Bird composed on 2019-07-14 19:28 (UTC-0700):
Felix Miata wrote:
Is it normal for non-iis not to be reduced to 0? How to get rid of the numerous rcs?
dpkg --purge ...
# dpkg -l | grep '^rc' | wc -l 125 # dpkg --purge ... dpkg: error: --purge needs a valid package name but '...' is not: illegal package name in specifier '...': must start with an alphanumeric character
You can either manually list the non-ii packages there or use some bash/awk magic.
I'm not going to publish a solution that purges a huge number of packages which someone might try ten years hence and do themselves a lot of harm.
--Mike
On Sunday 14 July 2019 20:02:27 Felix Miata wrote:
Mike Bird composed on 2019-07-14 19:28 (UTC-0700):
Felix Miata wrote:
Is it normal for non-iis not to be reduced to 0? How to get rid of the numerous rcs?
dpkg --purge ...
# dpkg -l | grep '^rc' | wc -l 125 # dpkg --purge ... dpkg: error: --purge needs a valid package name but '...' is not: illegal package name in specifier '...': must start with an alphanumeric character
Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' ! #
Surely there must be a way that doesn't involve finding and typing 125 package names.
I generally install from saved packages (rather than waiting for downloads, or worrying about why servers are down, etc.); so there *is* a way, sort of, but I don't see how it could be adapted to work for you ... because, because ...
When I install, I use the command sudo dpkg -i -E -G /media/<location>/*.deb but I want to install all packages in a selected folder.
To purge, the reverse ought to work, of course, at least in theory: sudo dpkg --purge /media/<location>/*.deb but you need some way to limit the choices available, without listing all 125 pkgs.
Bill