Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.