LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-20-2015, 05:56 AM   #1
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Debian Testing
Posts: 92

Rep: Reputation: 15
Can confirmation be bypassed in CLI while installing software or upgrading?


I don't know why I want this, but is there a way the
Code:
sudo aptitude install <package>
or
Code:
sudo aptitude upgrade
command could bypass the confirmation stage? It's always occurred to me shouldn't there be some command parameter for install/upgrade that does the work?

Let me give an example. Suppose I want to install Variety, the wallpaper changing application. Now, I know that I want to install the software with all the dependencies it requires to install/run - the entire package. So, isn't it obvious that I would press Y when aptitude shows the info what it's going to download/install and asks for permission?

I can't, however, imagine scenarios when seeing that information I'd change my mind and press N to abort the install/upgrade procedure.
 
Old 02-20-2015, 06:55 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Did you check to see what the manpage had to say ?.
 
1 members found this post helpful.
Old 02-20-2015, 08:02 AM   #3
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 614
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
For apt-get, yum, and zypper, append -y after the package manager command, and before the name of the package(s) to install.
 
1 members found this post helpful.
Old 02-20-2015, 12:33 PM   #4
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Debian Testing
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Did you check to see what the manpage had to say ?.
Thank you for directing me that way. Actually, never went down to the -y part. Learnt the lesson!

And also thanks to Ihatewindows522.
 
Old 02-20-2015, 02:34 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Be careful with that option, though. If you want to install a package that conflicts with an already installed package you might see half of your system being removed because of this option, while you would see that problems will arise when being asked for confirmation instead.
 
1 members found this post helpful.
Old 02-21-2015, 06:51 AM   #6
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Debian Testing
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
Be careful with that option, though. If you want to install a package that conflicts with an already installed package you might see half of your system being removed because of this option, while you would see that problems will arise when being asked for confirmation instead.
Will sure remember that, Tobi. I'm not certain I'll ever use that option - I just posted this thread out of a moment's frustration .
 
Old 03-02-2015, 04:12 PM   #7
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 614
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Quote:
Originally Posted by TristanDee View Post
Will sure remember that, Tobi. I'm not certain I'll ever use that option - I just posted this thread out of a moment's frustration .
Believe me, if you want to give it a few tasks to run when you gotta run, you'll be glad you've got it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squidgurad Getting Bypassed rajesh.bahl Linux - Server 5 05-19-2011 05:20 AM
someone bypassed my iptables rules? vlkplk Linux - Security 6 02-18-2008 11:10 PM
Upgrading via CLI? binjured Linux - Newbie 6 04-24-2006 05:11 AM
Best rpm based distro for installing/upgrading software easily? RoaCh Of DisCor Linux - Software 16 01-16-2005 01:53 PM
installing nvidia driver - updating confirmation bigjohn Linux - Newbie 1 02-29-2004 11:14 AM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration