I'm trying to get the names of downloaded packages without dependencies..
I don't want to get all the files in /var/cache/apt/archives .. I only want to get the primary packages without dependencies
I don't want to list files in /usr/share/applications either..

  • Either apt-get download pkgname or aptitude download pkgname should work, depending on the version of your distribution (which you don't specify). – Faheem Mitha Feb 22 '15 at 19:50
  • Sorry but I want to get the names of all downloaded applications not download a certain package – user3379482 Feb 22 '15 at 20:01
  • Sorry, I don't understand what you are asking. – Faheem Mitha Feb 22 '15 at 20:25

You can check /var/log/apt/history.log

When you issue apt-get install, it records the command line as Commandline: record, and real packages installed as Install:

  • Well..this doesn't provide a list contains only packages without any additions.. but I can extract the names by using substring between the first two : after 'install'...Great job man :) – user3379482 Feb 23 '15 at 18:23

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.