• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

NonInteractive apt-get install in Debian

February 18, 2011 by Sharad Chhetri Leave a Comment

In this post, we will know how to do noninteractive apt-get install in Debian Operating System.
By this method you can skip the interactive query ask while doing apt-get install .

For eg. on doing apt-get -y install nagios-nrpe-server , the samba and dhcp packages also install and at that time it need user manual interaction to say ok or yes/no.

You have to set environment variable called DEBIAN_FRONTEND=noninteractive to make this working.

Example:

sudo export DEBIAN_FRONTEND=noninteractive
sudo apt-get -q -y install nagios-nrpe-server nagios-plugins nagios-plugins-basic

The method is helpful when u want to use command remotely from ssh.
For example.

sudo ssh hostname "export DEBIAN_FRONTEND=noninteractive;apt-get -q -y install nagios-nrpe-server

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Completely remove package on Ubuntu / Debian by apt-get
  2. How to install and configure nagios nrpe client in Ubuntu with apt-get command
  3. How to download package using apt-get command in ubuntu
  4. Install subversion 1.8 on Ubuntu using apt
  5. How to install owncloud in Debian Wheezy 7
  6. Debian Wheezy 7.1 package not found
  7. Configure ethernet to get IP address from DHCP in Ubuntu and Debian
  8. How to install and remove Apache webserver in Ubuntu and Debian
  9. How to install Seafile server in Debian Wheezy 7
  10. How To Install pip3 / pip2 In Linux

Filed Under: Linux, SSH, Ubuntu Tagged With: debian, ssh

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

send email after mysql backup through bash script in simple way

How to find swap partition or file in linux

df command not showing correct free space in linux

How to configure ethernet in CentOS 6 after installing in Virtual Box

This kernel requires an x86-64 CPU but only detected an i686 CPU

fatal error: error writing to /tmp/ccwAjc9Z.s: No space left on device

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy