Difference between revisions of "IMX8 Debian Package Update"

From Variscite Wiki
Line 21: 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
  
Line 28: Line 28:
 
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.  
 
|
 
|
 
}}
 
}}
  
{{#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 40: Line 39:
 
  $ vim var_make_debian.sh
 
  $ vim var_make_debian.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}}"
 
  readonly DEB_RELEASE="{{#vardefine:RELEASE_UPDATE_DISTRO}}"
 
  readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
 
  readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
to
+
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}}"
 
  readonly DEB_RELEASE="{{#vardefine:RELEASE_UPDATE_DISTRO}}"
 
  readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
 
  readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"
And build normally
+
And build normally.
 
<br>
 
<br>
 
'''Note:'''
 
'''Note:'''
 
* Latest debian.org packages may break your application libraries stack of your existing application.
 
* 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.  
+
* Please verify your application and package dependencies before upgrading to latest Debian packages.
|
 
}}
 

Revision as of 16:37, 8 March 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 var_make_debian.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/"
readonly DEB_RELEASE=""
readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"

to:

# default mirror
readonly DEF_DEBIAN_MIRROR="https://deb.debian.org/debian/"
readonly DEB_RELEASE=""
readonly DEF_ROOTFS_TARBALL_NAME="rootfs.tar.gz"

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.