[debian-edu-commits] [Debian Wiki] Update of "DebianEdu/Documentation/Wheezy/Maintenance" by PetterReinholdtsen
Debian Wiki
debian-www at lists.debian.org
Wed May 7 10:31:24 UTC 2014
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.
The "DebianEdu/Documentation/Wheezy/Maintenance" page has been changed by PetterReinholdtsen:
https://wiki.debian.org/DebianEdu/Documentation/Wheezy/Maintenance?action=diff&rev1=11&rev2=12
Comment:
More details on package upgrades.
== Updating the software ==
- This section explains how to use {{{aptitude upgrade}}}.
+ This section explains how to use {{{apt-get upgrade}}}.
- Using {{{aptitude}}} is really simply. To update a system you need to execute two commands on the command line as root: {{{aptitude update}}} (which updates the lists of available packages) and {{{aptitude upgrade}}} (which upgrades the packages for which an upgrade is available).
+ Using {{{apt-get}}} is really simply. To update a system you need to execute two commands on the command line as root: {{{apt-get update}}} (which updates the lists of available packages) and {{{apt-get upgrade}}} (which upgrades the packages for which an upgrade is available).
+
+ As Debian Edu uses libpam-tmpdir, setting a per user TMP directory, it is a good idea to run apt-get without the TMP and TMPDIR variables set in the LTSP chroot. It is also a good idea to upgrade using the C locale to get known output and sorting order, even though that making a difference is a bug in a package.
+
+ {{{
+ LC_ALL=C apt-get update ; LC_ALL=C TMP= TMPDIR= ltsp-chroot apt-get update
+ LC_ALL=C apt-get upgrade -y
+ LC_ALL=C TMP= TMPDIR= ltsp-chroot apt-get upgrade -y
+ ltsp-update-kernels # If a new kernel was installed
+ }}}
+
+ /!\ It is important to run {{{ltsp-update-kernels}}} if a new kernel was installed in the LTSP chroot, to keep the kernel and kernel module in sync. The kernel is handed out via TFTP when the machine PXE boot, and the kernel modules are fetched from the LTSP chroot.
It is also a good idea to install {{{cron-apt}}} and {{{apt-listchanges}}} and configure them to send mail to an address you are reading.
- {{{cron-apt}}} will notify you once a day via email about any packages that can be upgraded. It does not install these upgrades, but does download them (usually in the night), so you don't have to wait for the download when you do {{{aptitude upgrade}}}.
+ {{{cron-apt}}} will notify you once a day via email about any packages that can be upgraded. It does not install these upgrades, but does download them (usually in the night), so you don't have to wait for the download when you do {{{apt-get upgrade}}}.
## what does it do that you can't get more easily these days with "APT::Periodic::..." lines in an /etc/apt/apt.conf.d file?
Automatic installation of updates can be done easily if desired, it just needs the {{{unattended-upgrades}}} package to be installed and configured as described on [[https://wiki.debian.org/UnattendedUpgrades|wiki.debian.org/UnattendedUpgrades]].
More information about the debian-edu-commits
mailing list