IMX8 Debian Package Update: Difference between revisions

From Variscite Wiki
(Update INIT_RELEASE_PARAM)
(Move common note to the introduction)
Line 8: Line 8:
= Debian Package Upgrade =
= 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.
By default Debian release uses snapshot at the time of release. The package upgrade requires manual addition to the latest apt resources.
{{Note|'''Note'''<br>
* 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.
|info}}


= Adding Debian.org to apt source list =
= Adding Debian.org to apt source list =
Line 50: Line 55:
  # default mirror
  # default mirror
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
And build normally.<br>
And build normally.
<br>
'''Note:'''
* 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.

Revision as of 16:18, 22 May 2024

Warning: This page is designed to be used with a 'release' URL parameter.

This page is using the default release mx8mp-debian-bookworm-6.1.36_2.1.0-v1.0.
To view this page for a specific Variscite SoM and software release, please follow these steps:

  1. Visit variwiki.com
  2. Select your SoM
  3. Select the software release


Upgrading Debain 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.


Note
  • 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 bookworm main contrib nono-free" > /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian bookworm main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb https://deb.debian.org/debian bookworm-backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian bookworm-backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list

Updating package repo

# apt-get update

Installing / Upgrading to latest package

# apt-get --only-upgrade install <package name>

i.e. if you wish to upgrade apache2 below is example of it.

# apt-get --only-upgrade install apache2


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 . var-setup-debian.sh using following commands,

$ cd ~/debian_imx8mp_var_dart
$ vim variscite/imx8mp-var-dart/imx8mp-var-dart.sh

And change below line:

readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archives/debian/yyyymmddT"

to:

readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"

For example, change this:

# default mirror
readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archive/debian/20201130T213631Z/"

to:

# default mirror
readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"

And build normally.