IMX8 Debian Package Update: Difference between revisions
From Variscite Wiki
No edit summary |
(Fix typo nono-free) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
--> | --> | ||
{{#vardefine:RELEASE_UPDATE_DISTRO|{{lc:{{#var:DEBIAN_NAME}}}}}} | {{#vardefine:RELEASE_UPDATE_DISTRO|{{lc:{{#var:DEBIAN_NAME}}}}}} | ||
{{#vardefine:RELEASE_UPDATE_URL|https://deb.debian.org/debian}} | |||
{{PageHeader| Upgrading Debian Packages}} | {{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 17: | Line 18: | ||
= Adding debian.org to apt source list = | = Adding debian.org to apt source list = | ||
# echo "deb {{#var:RELEASE_UPDATE_URL}} {{#var:RELEASE_UPDATE_DISTRO}} main contrib | # 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}} main contrib | # 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 | # 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 | # 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 = | ||
Line 27: | Line 28: | ||
= Upgrading to latest package = | = Upgrading to latest package = | ||
# apt-get --only-upgrade install <package name> | # apt-get --only-upgrade install <package name> | ||
Note: The | '''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. | For example, if you wish to upgrade apache2, below is an example of it. |
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:
- Visit variwiki.com
- Select your SoM
- 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