Find all of the packages installed and install them on another PC [closed]

StackOverflow https://stackoverflow.com/questions/17527439

  •  02-06-2022
  •  | 
  •  

Вопрос

I want to install all the packages which I have on my PC in the office into the PC I've got at home.

Is there any way doing that using terminal?

Это было полезно?

Решение

To get list of names (without version) of all installed packages use:

rpm -q -a --qf '%{NAME} ' > pkglist.txt

Than feed that list to zypper on another system:

zypper in `cat pkglist.txt`
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top