Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Automating apt-get install in Ubuntu

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-01-2010
Member
 
Join Date: Dec 2009
Posts: 78
Automating apt-get install in Ubuntu
  

I always face some sort of problem while running the commands which i have mentioned below:

sudo apt-get update &&
sudo apt-get install -y mdadm xfsprogs

I have to press the enter key, select item on the list, go next manually while installing these packages , How could I automate it without user interference? That's why i want a shell script so that i can automate apt-get install

Reply With Quote
  #2  
Old 23-01-2010
Member
 
Join Date: Apr 2008
Posts: 3,259
Re: Automating apt-get install in Ubuntu

To keep all your packagages updated you this trick will prove to be a quiet handy one, if you want to do this on daily basis. The package cron-apt will surely help you to achieve this since it is one of the best method of handling this install. This will download only the new updates and e-mails the admin that they are available.
Reply With Quote
  #3  
Old 23-01-2010
Dr. V
 
Posts: n/a
Re: Automating apt-get install in Ubuntu

Installing the cron-apt will do the trick for you. You can install cron-apt with the apt-get install cron-apt command. The cron-apt will not allowto autmatically update the packages and i think which is a good step. it will only download the wmails and updates that are available. So installing cron-apt update will fix this issue.
Reply With Quote
  #4  
Old 23-01-2010
Member
 
Join Date: Nov 2005
Posts: 1,203
Re: Automating apt-get install in Ubuntu

You have already placed the -y in the command which automatically gives all prompts to assume yes so that these prompts run non-interactively or we can say it as automatically. The apt-get package will be aborted only if and only if an undesirable situation, such as changing a held package, trying
to install a unauthenticated package or removing an essential package occurs.
Reply With Quote
  #5  
Old 23-01-2010
Member
 
Join Date: Nov 2005
Posts: 3,022
Re: Automating apt-get install in Ubuntu

I think that you can automate the whole process with the --force-yes command. This will automate all of the prompts which will appear in apt-get install. Since you are forcing the prompts with the force command it will automatically complete the installation unless an unhandled exception occurs. I hope you will fix this matter.
Reply With Quote
  #6  
Old 23-01-2010
Member
 
Join Date: May 2008
Posts: 4,080
Re: Automating apt-get install in Ubuntu

You can solve this issue by using a graphical user interface instead of the command line interface. Use the Synaptic which is simple as well as reliable. You can also search different packages , update and install them by just following some simple steps. Similarly a lot of GUI's are also available aptitude can also be used for apt-get install.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Automating apt-get install in Ubuntu"
Thread Thread Starter Forum Replies Last Post
automating installation using batch file tush9876 Software Development 1 01-05-2012 02:28 AM
How to Automating Factories and Gaining resources in Victoria 2 Keyurama Video Games 3 27-01-2012 08:23 PM
Automating Button Press with Hardware Blesseds Hardware Peripherals 3 31-12-2010 01:13 PM
Automating CRL signing krausejw Networking & Security 1 08-05-2010 12:05 PM
Automating network printer and mapped drives webwired Small Business Server 6 22-02-2009 07:09 PM


All times are GMT +5.5. The time now is 08:34 AM.