How to rebuild all Debian packages with a specific flag?

I would like to recompile / recompile all Debian packages with certain flags.

How can I do this with a smaller team as possible?

I found that https://debian-administration.org/article/20/Rebuilding_Debian_packages , but he does not explain how to do this for all packages installed on the system.

+6
source share
1 answer

Try this approach:

dpkg --get-selections > selections
sudo dpkg --clear-selections
sudo dpkg --set-selections < selections
sudo apt-get --reinstall dselect-upgrade

Source: https://www.linuxquestions.org/questions/linux-software-2/force-apt-get-to-redownload-and-reinstall-dependencies-as-well-873038/

+3
source

All Articles