Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

How to change apt default behaviour

Started by brunomiguel, August 01, 2018, 10:02:04 PM

Previous topic - Next topic

brunomiguel

Hello, there.

This is my first time with Sparky (although I've used Debian and Ubuntu for more than a decade) and I've noticed that apt cancels package installations if it has to receive confirmation from the user. Example: I'm installing something, I use 'sudo apt install package-name-with-dependencies' and, if I don't use the -y flag, it will cancel the installation automatically if there are dependencies to install. Debian and Ubuntu don't do this: apt waits for the user input, be it 'y' or 'n'.

Where can this be configured? I can't seem to find a file with these options.

paxmark1

Hmm , interesting.  I looked at man apt.conf  I do not seem to have one  as root updatedb  then locate apt.conf   - <I do not have one.  oot@raunesat:/# updatedb
root@raunesat:/# locate apt.conf
/etc/apt/apt.conf.d
/etc/apt/apt.conf.d/00CDMountPoint
/etc/apt/apt.conf.d/00trustcdrom
/etc/apt/apt.conf.d/01autoremove
/etc/apt/apt.conf.d/01autoremove-kernels
/etc/apt/apt.conf.d/10apt-listbugs
/etc/apt/apt.conf.d/20apt-show-versions
/etc/apt/apt.conf.d/20listchanges
/etc/apt/apt.conf.d/70debconf
/etc/apt/apt.conf.d/99synaptic
/usr/share/doc/apt/examples/apt.conf
/usr/share/man/de/man5/apt.conf.5.gz
/usr/share/man/fr/man5/apt.conf.5.gz
/usr/share/man/it/man5/apt.conf.5.gz
/usr/share/man/ja/man5/apt.conf.5.gz
/usr/share/man/man5/apt.conf.5.gz
/usr/share/man/nl/man5/apt.conf.5.gz
/usr/share/man/pt/man5/apt.conf.5.gz
/var/lib/dpkg/info/apt.conffiles


nano /usr./share/doc/apt/examples/apt.conf   is a very bland and weird file.  Hopefully others have more ideas and/or help. 
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

bilotola

#2
You can pass arguments to avoid getting prompts. This works for me.
force-confold (my choice) will make these "What do you want to do about modified configuration file" questions default to N (keep your currently-installed version)  bluestacks.vip    luckypatcher.pro   kodi.software
some modified configuration files can break your system if kept back & not compatible with updated package version.
Please test it before deploying in automation solutions.


View the most recent posts on the forum