Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4051  / 1 Year ago, sat, may 13, 2023, 12:46:13

How do I call apt-get install -y --force-yes if I want to install the package no matter what, except unauthorized packages.



So I want apt-get to work in non interactive mode and only with signed packages.


More From » apt

 Answers
5

If I understand your question correctly, you use one of the options -yor --yes, or --assume-yes



From the man page http://manpages.ubuntu.com/manpages/utopic/man8/apt-get.8.html




-y, --yes, --assume-yes
Automatic yes to prompts; assume "yes" as answer to all prompts and
run non-interactively. If an undesirable situation, such as
changing a held package, trying to install a unauthenticated
package
or removing an essential package occurs then apt-get will
abort. Configuration Item: APT::Get::Assume-Yes.




I suppose it may depend on what you mean by "unauthorized packages"



I would use extreme caution with any of the force options with apt-get, forcing things is a good way to break apt, or your install, or both.


[#17264] Saturday, May 13, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionash

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;