Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to find a way in order to use aptdcon -- the command line client for aptdaemon in a script.

aptdcon misses options such as:

  • Loggable output - no progress indicator.
  • Assume No to all queries and do not prompt.

The following package will be upgraded (1): xxx

Need to get xxx of archives.

Do you want to continue [Y/n]?

So aptdcon prompts for a user response making it inappropriate for shell scripts.

How can I use aptdcon or any other app (that doesn't need root permissions) in non user-interactive scripts?

share|improve this question
up vote 1 down vote accepted

Since no one answered. I added my workaround to this question.

Instead of using aptdcon I use aptitude to display all the available updates in a logable/scriptable format.

aptitude search '~U'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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