When I look at the apt install history at /var/log/apt/history.log.1.gz, there is a lot of information and it is hard to figure out what was installed explicitly and what was brought in as a dependency.

How can I see which packages were explicitly installed (excluding dependencies) by the administrator after the initial standard setup was finished?

(I want to find out, what my collegue did on our server)

  • Tried grep? askubuntu.com/a/337006/158442 – muru Jan 26 '16 at 14:27
  • 1
    I tried to clarify what you want but I may be wrong. Do you only want those packages that were installed during installation? Only those that were explicitly installed (excluding dependencies)? All packages that were explicitly installed? Please edit and clarify. – terdon Jan 26 '16 at 14:29
  • I found instructions for Ubuntu using a manifest file with all packages installed initially, so I would only need a manifest for jessie to try that. – rubo77 Jan 26 '16 at 14:30
  • @muru your solution with grep will display all packages. I can sort out some libs with grep 'install ' /var/log/dpkg.log.1 |grep -v -e "\blib" but still far too much – rubo77 Jan 26 '16 at 14:35

Your Answer

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

Browse other questions tagged or ask your own question.