I have file called packages.list which has the name of the packages like:
a11y-profile-manager install
a11y-profile-manager-indicator install
account-plugin-facebook install
account-plugin-flickr install
account-plugin-google install
accountsservice install
acl install
acpi-support install
acpid install
activity-log-manager install
adduser install
adium-theme-ubuntu install
adwaita-icon-theme install
adwaita-icon-theme-full install
aisleriot install
alsa-base install
alsa-utils install
anacron install
apg install
..
.
I want to know is there any way to install the packages listed in the file using apt and also I want to ignore any packages that are already installed.
dpkg --get-selections
command - and so should be readable bydpkg --set-selections
. However there are some caveats about package availability - see thedpkg
manual page – steeldriver Apr 14 '18 at 13:22