New apt-env

This is new apt environment script to download Debian packages in a sandbox. This is just a new improvement of Iang's script. The new features are:

  • Using source parts (sources.list.d directory)
    This is common in Ubuntu. Personally, I think it's a good practice to separate main package sources and additional package sources.
  • Optional apt configuration.
    In apt.conf, I've added clues how to add package cacher like apt-cacher-ng and also how to download different architecture so you don't have to look at the man page for this common things (at least for me).
  • Better prompt
    Now to prompt is not messy any longer. The bug has been fixed
  • Autocomplete is now possible. I added . /etc/bash_completion if the file exists

I've attached the script below (change the file back to "apt-env")

Later, I'd like to push this enhancement to Iang's github repository.

Enjoy the script!

AttachmentSize
apt-env.2.75 KB

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <pre>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.