Browse Source

Add apt configuration

master
Duke Leto 14 years ago
parent
commit
1f421f1811
  1. 1
      config/etc/apt/apt.conf.d/00trustcdrom
  2. 18
      config/etc/apt/apt.conf.d/01autoremove
  3. 3
      config/etc/apt/apt.conf.d/01ubuntu
  4. 3
      config/etc/apt/apt.conf.d/05aptitude
  5. 3
      config/etc/apt/apt.conf.d/10periodic
  6. 1
      config/etc/apt/apt.conf.d/15update-stamp
  7. 3
      config/etc/apt/apt.conf.d/20archive
  8. 2
      config/etc/apt/apt.conf.d/20dbus
  9. 24
      config/etc/apt/apt.conf.d/50unattended-upgrades
  10. 3
      config/etc/apt/apt.conf.d/70debconf
  11. 1
      config/etc/apt/apt.conf.d/99update-notifier
  12. 65
      config/etc/apt/sources.list

1
config/etc/apt/apt.conf.d/00trustcdrom

@ -0,0 +1 @@
APT::Authentication::TrustCDROM "true";

18
config/etc/apt/apt.conf.d/01autoremove

@ -0,0 +1,18 @@
APT
{
NeverAutoRemove
{
"^linux-firmware$";
"^linux-image.*";
"^linux-restricted-modules.*";
"^linux-ubuntu-modules-.*";
};
Never-MarkAuto-Sections
{
"metapackages";
"restricted/metapackages";
"universe/metapackages";
"multiverse/metapackages";
};
};

3
config/etc/apt/apt.conf.d/01ubuntu

@ -0,0 +1,3 @@
APT
{
};

3
config/etc/apt/apt.conf.d/05aptitude

@ -0,0 +1,3 @@
aptitude::Keep-Unused-Pattern "^linux-image.*$ | ^linux-restricted-modules.*$ | ^linux-ubuntu-modules.*$";
aptitude::Get-Root-Command "sudo:/usr/bin/sudo";

3
config/etc/apt/apt.conf.d/10periodic

@ -0,0 +1,3 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

1
config/etc/apt/apt.conf.d/15update-stamp

@ -0,0 +1 @@
APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";};

3
config/etc/apt/apt.conf.d/20archive

@ -0,0 +1,3 @@
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";

2
config/etc/apt/apt.conf.d/20dbus

@ -0,0 +1,2 @@
// Notify all clients to reload the cache
APT::Update::Post-Invoke-Success { "[ ! -S /var/run/dbus/system_bus_socket ] || /usr/bin/dbus-send --system --dest=org.debian.apt --type=signal /org/debian/apt org.debian.apt.CacheChanged"; };

24
config/etc/apt/apt.conf.d/50unattended-upgrades

@ -0,0 +1,24 @@
// Automatically upgrade packages from these (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
"Ubuntu karmic-security";
// "Ubuntu karmic-updates";
};
// List of packages to not update
Unattended-Upgrade::Package-Blacklist {
// "vim";
// "libc6";
// "libc6-dev";
// "libc6-i686";
};
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package 'mailx'
// must be installed or anything that provides /usr/bin/mail.
//Unattended-Upgrade::Mail "root@localhost";
// Automatically reboot *WITHOUT CONFIRMATION* if a
// the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

3
config/etc/apt/apt.conf.d/70debconf

@ -0,0 +1,3 @@
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};

1
config/etc/apt/apt.conf.d/99update-notifier

@ -0,0 +1 @@
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; if [ -e /var/lib/update-notifier/updates-available ]; then echo > /var/lib/update-notifier/updates-available; fi "};

65
config/etc/apt/sources.list

@ -0,0 +1,65 @@
#
# deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# Security updates from the main debian servers
#
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
# We keep an internal apt repository with a few Debian packages you will need
deb http://packages.sgn.cornell.edu/apt sgn lenny
deb-src http://packages.sgn.cornell.edu/apt sgn lenny
deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
Loading…
Cancel
Save