I have a folder with the contents of / var / cache / apt / archive /, in it all the packages (deb-packages) that I installed on this Ubuntu PC. I will transfer this folder as an archive to another Ubuntu PC, unzip it. I can install all these packages with the command:
dpkg -i /те/файлы/из/var/cache/apt/archive/*.deb But this command will install all the packages, and I need to install only those packages that are not yet installed, and those that are installed should be skipped.