If I want to rebuild an Ubuntu environment as an existing one, a question is that how I can list all the manually installed PPAs and pacakges. Here is the answer.
List repositories and PPAs
Create the following bash script and run:
1 |
|
List manually installed packages
Run the following command:
1 | comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) |