IMX8 Debian Package Update: Difference between revisions

From Variscite Wiki
(Fix typo nono-free)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- Set release according to "release" parameter in URL and use RELEASE_STRETCH_V3.0_DART-6UL as default
<!-- Set release according to "release" parameter in URL and use mx8mp-debian-bookworm-6.1.36_2.1.0-v1.0 as default
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
--> {{INIT_RELEASE_PARAM|mx8mp-debian-bookworm-6.1.36_2.1.0-v1.0}} <!--
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_STRETCH_V3.0_DART-6UL}}}} <!--
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM}}}} <!--
-->
-->
{{PageHeader| Upgrading Debain Packages}}
{{#vardefine:RELEASE_UPDATE_DISTRO|{{lc:{{#var:DEBIAN_NAME}}}}}}
{{#vardefine:RELEASE_UPDATE_URL|https://deb.debian.org/debian}}
{{PageHeader| Upgrading Debian Packages}}
{{DocImage|category1=Debian|category2=DART-MX8M}} [[Category:DART-MX8M-MINI]] [[Category:VAR-SOM-MX8X]] [[Category:VAR-SOM-MX8]]
{{DocImage|category1=Debian|category2=DART-MX8M}} [[Category:DART-MX8M-MINI]] [[Category:VAR-SOM-MX8X]] [[Category:VAR-SOM-MX8]]


Line 9: Line 11:
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.


= Adding Debian.org to apt source list =
{{Note|'''Warning'''<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.
|warning}}


  # echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib nono-free" > /etc/apt/sources.list.d/debian_update.list
= Adding debian.org to apt source list =
  # echo "deb-src {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
 
  # echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}}-backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
  # echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib non-free" > /etc/apt/sources.list.d/debian_update.list
  # echo "deb-src {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}}-backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
  # echo "deb-src {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
  # echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}}-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
  # echo "deb-src {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}}-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list


= Updating package repo =
= Updating package repo =
  # apt-get update
  # apt-get update


= Installing / Upgrading to latest package =
= Upgrading to latest package =
  # apt-get --only-upgrade install <package name>
  # apt-get --only-upgrade install <package name>
i.e if you wish to upgrade apache2 below is example of it.  
'''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.
  # apt-get --only-upgrade install apache2
  # apt-get --only-upgrade install apache2


Line 28: Line 37:
NXP Provides the Vivante GPU driver in binary form and it requires a specific minimum version of libc.<br>
NXP Provides the Vivante GPU driver in binary form and it requires a specific minimum version of libc.<br>
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.<br>
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.<br>
Therefore, if you need to update packages which depend on libc (like build-essentials, gcc, libc6-dev, etc.) please use only update that package. Installing / Updating all packages can break the rootfs.  
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.  
|
|
}}
}}
 
{{#varexists:META_VARISCITE_DEBIAN||
{{#ifeq: {{#var:SNAPSHOT_REQUIRED}} | true |
= Updating Package at Compile time =
= Updating Package at Compile time =
To update the packages instead of snapshot to original Debian latest package lists and repository in the debian.org.  
To update the packages instead of snapshot to original Debian latest package lists and repository in the debian.org.  
Line 38: Line 46:
Edit file {{#var:BUILD_SCRIPT}} using following commands,  
Edit file {{#var:BUILD_SCRIPT}} using following commands,  
  $ cd {{#var:BUILD_FOLDER}}
  $ cd {{#var:BUILD_FOLDER}}
  $ vim var_make_debian.sh
  $ vim variscite/{{#var:MACHINE_NAME}}/{{#var:MACHINE_NAME}}.sh


And change below lines,
And change below line:
  readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archives/debian/yyyymmddT"
  readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archives/debian/yyyymmddT"
to
to:
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"


For Example:
For example, change this:
  # default mirror
  # default mirror
  readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archive/debian/20201130T213631Z/"
  readonly DEF_DEBIAN_MIRROR="https://snapshot.debian.org/archive/debian/20201130T213631Z/"
readonly DEB_RELEASE="{{#vardefine:RELEASE_UPDATE_DISTRO}}"
to:
readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
to
  # default mirror
  # default mirror
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
  readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
readonly DEB_RELEASE="{{#vardefine:RELEASE_UPDATE_DISTRO}}"
And build normally.
readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
And build normally
|
}}
}}

Latest revision as of 09:29, 25 September 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 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 bookworm main contrib non-free" > /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian bookworm main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb https://deb.debian.org/debian bookworm-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb-src https://deb.debian.org/debian bookworm-backports main contrib non-free" >> /etc/apt/sources.list.d/debian_update.list

Updating package repo

# apt-get update

Upgrading to latest package

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

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.

# apt-get --only-upgrade install apache2