Manual for apt

Tom H tomh0665 at gmail.com
Sat Sep 3 12:00:59 UTC 2016


On Sat, Sep 3, 2016 at 4:01 AM, Ralf Mardorf <silver.bullet at zoho.com> wrote:


> where do I find an English and a German manual for apt?
>
> Packages installed by either apt "full-upgrade" or "install", e.g.
>
> # apt -o APT::Color="0" full-upgrade
> # apt install alpine-pico
>
> are not stored in /var/cache/apt/archives/.

Are you sure? (The following's on a Debian 8 system.)

# apt-get clean

# apt install samba
...

# ls /var/cache/apt/archives/
attr_1%3a2.4.47-2_amd64.deb libntdb1_1.0-5_amd64.deb
python-crypto_2.6.1-5+b2_amd64.deb
dbus_1.8.20-0+deb8u1.0nosystemd1_amd64.deb
libpython2.7_2.7.9-2_amd64.deb python-dnspython_1.12.0-1_all.deb
libaio1_0.3.110-1_amd64.deb libpython2.7-minimal_2.7.9-2_amd64.deb
python-ldb_2%3a1.1.20-0+deb8u1_amd64.deb
libasn1-8-heimdal_1.6~rc2+dfsg-9_amd64.deb
libpython2.7-stdlib_2.7.9-2_amd64.deb python-minimal_2.7.9-1_amd64.deb
libavahi-client3_0.6.31-5_amd64.deb libpython-stdlib_2.7.9-1_amd64.deb
python-ntdb_1.0-5_amd64.deb
libavahi-common3_0.6.31-5_amd64.deb
libroken18-heimdal_1.6~rc2+dfsg-9_amd64.deb
python-samba_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libavahi-common-data_0.6.31-5_amd64.deb
libtalloc2_2.1.2-0+deb8u1_amd64.deb
python-talloc_2.1.2-0+deb8u1_amd64.deb
libcap-ng0_0.7.4-2_amd64.deb libtdb1_1.3.6-0+deb8u1_amd64.deb
python-tdb_1.3.6-0+deb8u1_amd64.deb
libcups2_1.7.5-11+deb8u1.0nosystemd1_amd64.deb
libtevent0_0.9.25-0+deb8u1_amd64.deb
samba_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libdbus-1-3_1.8.20-0+deb8u1.0nosystemd1_amd64.deb
libwbclient0_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
samba-common_2%3a4.2.10+dfsg-0+deb8u3_all.deb
libfile-copy-recursive-perl_0.38-1_all.deb
libwind0-heimdal_1.6~rc2+dfsg-9_amd64.deb
samba-common-bin_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libhcrypto4-heimdal_1.6~rc2+dfsg-9_amd64.deb lock
samba-dsdb-modules_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libhdb9-heimdal_1.6~rc2+dfsg-9_amd64.deb mime-support_3.58_all.deb
samba-libs_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libheimbase1-heimdal_1.6~rc2+dfsg-9_amd64.deb partial
samba-vfs-modules_2%3a4.2.10+dfsg-0+deb8u3_amd64.deb
libhx509-5-heimdal_1.6~rc2+dfsg-9_amd64.deb
python2.7_2.7.9-2_amd64.deb tdb-tools_1.3.6-0+deb8u1_amd64.deb
libkrb5-26-heimdal_1.6~rc2+dfsg-9_amd64.deb python_2.7.9-1_amd64.deb
ucf_3.0030_all.deb
libldb1_2%3a1.1.20-0+deb8u1_amd64.deb
python2.7-minimal_2.7.9-2_amd64.deb update-inetd_4.43_all.deb

# apt clean
E: Invalid operation clean

# apt-get clean

# ls /var/cache/apt/archives/
lock partial
#


> As wanted apt-get "dist-upgrade" and "install" stores the packages in
> the cache.
>
> Some apt-get options seem to be available for apt, too, e.g.
>
> etc. and searching the web, I neither get information about the real apt
> defaults, nor what "-o" parameter to use, resp. what to add
> to /etc/apt/apt.conf.d/, if I want apt "full-upgrade" and "install" to
> store packages in the cache.
>
> Important defaults and available options aren't mentioned at all.

From
https://mvogt.wordpress.com/2014/04/04/apt-1-0/

APT 1.0 was released on the 1. April 2014 [0]! The first APT version
was announced on the 1. April exactly 16 years ago [1].

The big news for this version is that we included a new “apt” binary
that combines the most commonly used commands from apt-get and
apt-cache. The commands are the same as their apt-get/apt-cache
counterparts but with slightly different configuration options.




More information about the ubuntu-users mailing list