ubuntu: how to get installed softwares from other ubuntu machines using dpkg

60 views Asked by At

I can able to get the installed softwares from my ubuntu machine using dpkg. Trying to collect the information from corporate wide ubuntu machines.

how do i get installed softwares from other ubuntu machines using dpkg?

(like using windows powershell script get-wmi with computername option to get from other computers)

2

There are 2 answers

0
Neagu V On

You can use:

dpkg -l

or

apt --installed list
0
Manolis Ragkousis On

Create a file containing all the packages in your system with:

dpkg --get-selections | sed "s/.*deinstall//" | sed "s/install$//g" > pkglist

pkglist will contain all packages which are installed in your system. Then you can use this file to migrate to another ubuntu machine.

This link will probably help you more.