至于删除,需要使用相同的命令格式和适当的选项。
# apt -y remove $(cat /tmp/pack1.txt) Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apache2-bin apache2-data apache2-utils galera-3 libaio1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libjemalloc1 liblua5.2-0 libmysqlclient20 libopts25 libterm-readkey-perl mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 mysql-common sntp socat Use 'apt autoremove' to remove them. The following packages will be REMOVED: apache2 mariadb-server nano 0 upgraded, 0 newly installed, 3 to remove and 24 not upgraded. After this operation, 1,377 kB disk space will be freed. (Reading database ... 291046 files and directories currently installed.) Removing apache2 (2.4.29-1ubuntu4.6) ... Removing mariadb-server (1:10.1.38-0ubuntu0.18.04.1) ... Removing nano (2.9.3-2) ... update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in auto mode Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ... Processing triggers for install-info (6.5.0.dfsg.1-2) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(编辑:成都站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|