[教學] HowTo: Create a list of installed packages

I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,
  1. dpkg --get-selections > installed-software
複製代碼
And if you wanted to use the list to reinstall this software on a fresh ubuntu setup,
  1. dpkg --set-selections < installed-software
複製代碼
followed by
  1. dselect
複製代碼

回復 1# s20012797

note that this only works on debian-based distro

TOP

回復 1# s20012797


先排都用左.

dselect 入面要選i (install)

TOP

  1. rpm -qa
複製代碼

TOP