Results 1 to 6 of 6

Thread: Automating apt-get install in Ubuntu

  1. #1
    Join Date
    Dec 2009

    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

  2. #2
    Join Date
    Apr 2008

    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.

  3. #3
    Dr. V Guest

    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.

  4. #4
    Join Date
    Nov 2005

    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.

  5. #5
    Join Date
    Nov 2005

    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.

  6. #6
    Join Date
    May 2008

    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.

Similar Threads

  1. automating installation using batch file
    By tush9876 in forum Software Development
    Replies: 1
    Last Post: 01-05-2012, 01:28 AM
  2. Replies: 3
    Last Post: 27-01-2012, 07:23 PM
  3. Automating Button Press with Hardware
    By Blesseds in forum Hardware Peripherals
    Replies: 3
    Last Post: 31-12-2010, 12:13 PM
  4. Automating CRL signing
    By krausejw in forum Networking & Security
    Replies: 1
    Last Post: 08-05-2010, 11:05 AM
  5. Automating network printer and mapped drives
    By webwired in forum Small Business Server
    Replies: 6
    Last Post: 22-02-2009, 06:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts