sudo apt-get autoremove .
产出:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
apt libapt-pkg4.12 (due to apt) libc6 (due to apt) libgcc1 (due to apt)
libstdc++6 (due to apt) ubuntu-keyring (due to apt) gnupg (due to apt)
base-files base-passwd libdebconfclient0 (due to base-passwd) bash
debianutils (due to bash) dash (due to bash) libtinfo5 (due to bash)
bsdutils coreutils libacl1 (due to coreutils) libattr1 (due to coreutils)
libselinux1 (due to coreutils) dpkg (due to dash) sensible-utils (due to
debianutils) diffutils libbz2-1.0 (due to dpkg) liblzma5 (due to dpkg)
zlib1g (due to dpkg) tar (due to dpkg) e2fsprogs e2fslibs (due to e2fsprogs)
libblkid1 (due to e2fsprogs) libcomerr2 (due to e2fsprogs) libss2 (due to
e2fsprogs) libuuid1 (due to e2fsprogs) util-linux (due to e2fsprogs)
findutils grep install-info (due to grep) libpcre3 (due to grep) gzip
hostname libc-bin libcap2 (due to libc-bin) login libpam0g (due to login)
libpam-runtime (due to login) libpam-modules (due to login) mount libmount1
(due to mount) ncurses-base ncurses-bin perl-base sed lsb-base (due to
util-linux) tzdata (due to util-linux) debconf (due to util-linux) sysv-rc
(due to util-linux) libncurses5 (due to util-linux) libslang2 (due to
util-linux)
0 upgraded, 0 newly installed, 2913 to remove and 0 not upgraded.
After this operation, 8,775 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] 那个点是做什么的?
发布于 2014-07-26 09:12:14
哇,先别那么做。命令:
apt-get autoremove a_packet_name将删除指定的包及其所有依赖项。但是您可以使用正则表达式作为包名。因此,一个包名.将匹配您的系统上安装的每个包。真的很有害!
man apt-get提供的其他详细信息:
如果没有与给定表达式匹配的包,且表达式包含“.”、“?”之一?或者“*”,然后假设它是一个POSIX正则表达式,并将其应用于数据库中的所有包名。然后安装(或删除)任何匹配项。注意,匹配是通过子字符串进行的,所以“lo.*”匹配了“how lo”和“最低点”。如果这是不需要的,请用“^”或“$”字符锚定正则表达式,或者创建更具体的正则表达式。
https://askubuntu.com/questions/502888
复制相似问题