Results 1 to 3 of 3

Thread: questions on apt-get and related topics

  1. #1
    Join Date
    Dec 2019
    Beans
    2

    questions on apt-get and related topics

    I'm building a VirtualBox VM based on Ubuntu, for use under Vagrant. Because I'm explicitly installing about 200 packages (and implicitly installing a few thousand more), I have no interest in answering configuration questions interactively. So, I have scripted the installation process using "apt-get install -y".

    This works for almost every package, but there are several (e.g., chef, chef-zero, emacspeak, jack, kde, mailutils, nodm) which still want to ask questions about configuration settings. It seems to me that there should be a way (e.g., configuration file, environment variable) to specify these settings in advance. However, I haven't found any documentation on that possibility. Can anyone provide me with information and/or pointers on this?

    More generally, I'd like to examine the APT-related files for these packages, but I'm not sure about the easiest way to do this. I've tried looking at pages such as "https://launchpad.net/ubuntu/+source/nodm" and "https://code.launchpad.net/ubuntu/+source/nodm", but they don't seem to lead to anything useful. What's the Golden Path for getting to these files?

    -r

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    21,357
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: questions on apt-get and related topics

    For doing stuff like this, I use ansible. If you are using chef, why not install the base chef as part of the image, then use chef to handle the rest?

    There is away using an environment variable to tell dpkg only to install, but not configure any packages. I've used it, but couldn't find it quickly. APT front-ends will pass that environment variable through to dpkg.

    I've never used vagrant. Don't know what that does to this.

  3. #3
    Join Date
    Dec 2019
    Beans
    2

    Re: questions on apt-get and related topics

    Here's a great HowTo on handling (eg, pre-setting) configuration parameters:

    Perform an unattended installation of a Debian package
    http://www.microhowto.info/howto/per...n_package.html

    -r

Tags for this Thread

Bookmarks

Posting Permissions

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