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 did a update-manager -d and since it is asking if i should replace or leave several files like for example the mysql conf file. Do I have an option to tell it to upgrade everything no questions asked. Something like a silent install or to have everything automatic.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

The following might help you :

edit/create /etc/dpkg/dpkg.cfg.d/force-confnew

sudo vim /etc/dpkg/dpkg.cfg.d/force-confnew

and add the following :

force-confnew

It'll say to dpkg to always put the package maintainer version of the file.

Delete the file when your upgrade is finished.

update-manager will still ask you the basic questions but it'll not ask you about if you agree to change this or that file.

Dpkg may still have questions but it is better for you to not disable it. If you still want dpkg to be quiet replace force-confnew by force-all

WARNING 1 : This is a dangerous option. It'll delete any modifications you made on the files that are changed. And with this option you'll not be aware witch file is changed.

WARNING 2 : As 12.04 is still in development the packages that are installed can have bugs. This include trouble in the installation/upgrade process. It may break your system.

Best regards,

share|improve this answer

Apt-get allows the -y option to automatically answer "yes" to questions such as those. I believe the correct command would be

# apt-get dist-upgrade -y
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.