Installing .deb packages with apt-get

Dotan Cohen dotancohen at gmail.com
Tue May 22 16:02:00 UTC 2007


On 21/05/07, Mario Vukelic <mario.vukelic at dantian.org> wrote:
> On Mon, 2007-05-21 at 14:00 +0300, Dotan Cohen wrote:
> > It never asked me if I'm sure.
>
> Weird. In addition to the cmd line switches, the same settings can be
> made persistently in the apt config files in /etc/apt/apt.conf
> and /etc/apt/apt.conf.d/*. E.g., putting "APT::Get::Assume-Yes" in the
> config file is the same as -y on the cmd line. Please check the contents
> you have in these files.
>

No, the Assume-Yes setting is not set:

dotancohen at laptop:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/
00trustcdrom           10periodic             50unattended-upgrades
99update-notifier
01ubuntu               20archive              70debconf
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/0
00trustcdrom  01ubuntu
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/00trustcdrom
APT::Authentication::TrustCDROM "true";
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/01ubuntu
APT
{
  NeverAutoRemove
  {
        "^linux-image.*";
        "^linux-restricted-modules.*";
  };

  Install-Recommends-Section "metapackages";
  Never-MarkAuto-Section "metapackages";
};
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/20archive
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/50unattended-upgrades
// allowed (origin, archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "Ubuntu feisty-security";
//      "Ubuntu feisty-updates";
};

// never update the packages in this list
Unattended-Upgrade::Package-Blacklist {
//      "vim";
};
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/70debconf
// 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";};
dotancohen at laptop:~$ cat /etc/apt/apt.conf.d/99update-notifier
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then  touch
/var/lib/update-notifier/dpkg-run-stamp; fi";};
dotancohen at laptop:~$



Dotan Cohen

http://what-is-what.com/what_is/html_email.html
http://technology-sleuth.com/question/what_is_hdtv.html




More information about the ubuntu-users mailing list