Upgrading Debian Packages¶
Debian Package Upgrade¶
By default Debian release uses snapshot at the time of release. The package upgrade requires manual addition to the latest apt resources.
Warning
- Latest debian.org packages may break your application libraries stack of your existing application.
- Please verify your application and package dependencies before upgrading to latest Debian packages.
Adding debian.org to apt source list¶
# echo "deb https://deb.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian buster main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb https://deb.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian buster-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
Updating package repo¶
Upgrading to latest package¶
Note: The --only-upgrade option upgrades the package only if it is already installed, without actually installing any new packages.
For example, if you wish to upgrade apache2, below is an example of it.
Note:
NXP Provides the Vivante GPU driver in binary form and it requires a specific minimum version of libc.
Due to this requirement from the GPU user space libraries, this Debian release uses an updated version of libc from the newer Debian Bullseye repository.
Therefore, if you need to update packages which depend on libc (like build-essentials, gcc, libc6-dev, etc.) please update only that specific package. Installing / Updating all packages can break the rootfs.
Updating Package at Compile time¶
To update the packages instead of snapshot to original Debian latest package lists and repository in the debian.org.
Edit file MACHINE=imx8mm-var-dart ./var_make_debian.sh using following commands,
And change below line:
to:
For example, change this:
# default mirror
readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archive/debian/20201130T213631Z/"
to:
And build normally.