Difference between revisions of "IMX8 Debian Package Update"

From Variscite Wiki
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PageHeader| Upgrading package}}
+
<!-- Set release according to "release" parameter in URL and use RELEASE_STRETCH_V3.0_DART-6UL as default
 +
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!--
 +
--> {{#lst:Debian_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_STRETCH_V3.0_DART-6UL}}}} <!--
 +
-->
 +
{{PageHeader| Upgrading Debain 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]]
  
 
= Debian Package Upgrade =
 
= Debian Package Upgrade =
By default debian release uses snapshot at the time or release. So 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 =
 
= Adding Debian.org to apt source list =
  
  # echo "deb {{#var:RELEASE_UPDATE_URL}} main contrib nono-free" > /etc/apt/sources.list.d/debian_update.list
+
  # echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib nono-free" > /etc/apt/sources.list.d/debian_update.list
  # echo "deb-src {{#var:RELEASE_UPDATE_URL}} 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 nono-free" >> /etc/apt/sources.list.d/debian_update.list
  # echo "deb {{#var:RELEASE_UPDATE_URL}}-backports 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-src {{#var:RELEASE_UPDATE_URL}}-backports main contrib nono-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
  
 
= Updating package repo =
 
= Updating package repo =
Line 17: Line 21:
 
= Installing / Upgrading to latest package =
 
= Installing / 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.  
+
i.e. if you wish to upgrade apache2 below is example of it.  
 
  # apt-get --only-upgrade install apache2
 
  # apt-get --only-upgrade install apache2
 +
 +
{{#ifeq: {{#var:LIBC_WORKAROUND}} | true |
 +
Note:
 +
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>
 +
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 {{#var:BUILD_SCRIPT}} using following commands,
 +
$ cd {{#var:BUILD_FOLDER}}
 +
$ vim variscite/{{#var:MACHINE_NAME}}/{{#var:MACHINE_NAME}}.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.<br>
 +
<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.

Latest revision as of 00:52, 27 May 2021


Upgrading Debain Packages

1 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.

2 Adding Debian.org to apt source list

# echo "deb   main contrib nono-free" > /etc/apt/sources.list.d/debian_update.list
# echo "deb-src   main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb  -backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list
# echo "deb-src  -backports main contrib nono-free" >> /etc/apt/sources.list.d/debian_update.list

3 Updating package repo

# apt-get update

4 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


5 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 ./make_var_mx6ul_dart_debian.sh using following commands,

$ cd ~/var_mx6ul_dart_debian
$ vim variscite/imx6ul-var-dart/imx6ul-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.

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.