Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libopts25 sntp Use 'sudo apt autoremove'toremove them. Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom spell The following NEW packages will be installed: apache2 mariadb-server nano 0 upgraded, 3 newly installed, 0toremoveand24 not upgraded. Need toget339 kB of archives. After this operation, 1,377 kB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apache2 amd64 2.4.29-1ubuntu4.6 [95.1 kB] Get:2 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 nano amd64 2.9.3-2 [231 kB] Get:3 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 mariadb-server all1:10.1.38-0ubuntu0.18.04.1 [12.9 kB] Fetched 339 kB in 19s (18.0 kB/s) Selecting previously unselected package apache2. (Reading database ... 290926filesand directories currently installed.) Preparing to unpack .../apache2_2.4.29-1ubuntu4.6_amd64.deb ... Unpacking apache2 (2.4.29-1ubuntu4.6) ... Selecting previously unselected package nano. Preparing to unpack .../nano_2.9.3-2_amd64.deb ... Unpacking nano (2.9.3-2) ... Selecting previously unselected package mariadb-server. Preparing to unpack .../mariadb-server_1%3a10.1.38-0ubuntu0.18.04.1_all.deb ... Unpacking mariadb-server (1:10.1.38-0ubuntu0.18.04.1) ... Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ... Setting up apache2 (2.4.29-1ubuntu4.6) ... Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for install-info (6.5.0.dfsg.1-2) ... Setting up nano (2.9.3-2) ... update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode update-alternatives: using /bin/nano to provide /usr/bin/index_imgo (index_imgo) in auto mode Processing triggers for systemd (237-3ubuntu10.20) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up mariadb-server (1:10.1.38-0ubuntu0.18.04.1) ...
# apt -yremove $(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'toremove them. The following packages will be REMOVED: apache2 mariadb-server nano 0 upgraded, 0 newly installed, 3toremoveand24 not upgraded. After this operation, 1,377 kB disk space will be freed. (Reading database ... 291046filesand 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) ...