On Debian /Ubuntu systems, how to set a list of packages which can be installed from sources automatically by apt-get or aptitude? The server is mainly for scientific computing and I would like to compile some specific packages with highly optimized flags such as -O3 -march=native to boost the performance. I know how to do this for one single package, however, I don't want to redo these when there comes an upgrade.

1 Answer 1


Have a look at Debian's apt-build package.

  • I can't find how to use to build new releases automatically..
    – xuhdev
    Dec 17, 2014 at 8:40
  • If you look at the apt-build(1) man page, you see there commands like apt-build update (Retrieve new lists of packages), apt-build upgrade (Perform an upgrade) and apt-build install (Build and install new packages). Put a sane combination of these into a cron job and most of it should be done. Dec 17, 2014 at 22:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.