Difference between revisions of "DESK-MP1-L/Development/Management of prebuilt packages"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "<section begin="History" /> {| style="border-collapse:collapse; " ! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History |- ! style="bo...")
 
 
(8 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
 
|-
 
|-
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |August 2023
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |2023/08/31
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MP1-L-1.0.0 release
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MP1-L-1.0.1 release
 
|-
 
|-
 
|}
 
|}
Line 13: Line 13:
 
__FORCETOC__
 
__FORCETOC__
 
<section begin="Body" />
 
<section begin="Body" />
TBD
 
==Introduction==
 
During the development of custom applications, developers generally realize that they need to add libraries and other software packages to the root file systems to make their code run properly. If these packages are prebuilt, developers can easily install these additional packages onto the root file system very easily. By configuring the target as described in this document, they achieve a user experience similar to the one you have with a desktop Linux distro such as Ubuntu. DESK-MP1-L uses by default the <code>deb</code> package format. As such, [https://itsfoss.com/apt-command-guide/ apt commands] can be used for package management. Prebuilt packages are provided by a repository that DAVE Embedded Systems makes available for its customers.
 
  
==Configuring the target==
+
==Management of prebuilt packages==
In order to use <code>apt-get</code> for runtime package management, you must perform an initial setup on the target machine for cases where the PACKAGE_FEED_* variables were not set as part of the image that is running on the target.  
+
During the development of custom applications, developers generally realize that they need to add libraries and other software packages to the root file systems to make their code run properly. If these packages are prebuilt, developers can install them onto the root file system very easily. By configuring the target as described in this document, they achieve a user experience similar to the one you have with a desktop Linux distro such as Ubuntu. DESK-MP1-L uses by default the <code>deb</code> package format. As such, [https://itsfoss.com/apt-command-guide/ apt commands] can be used for package management. Prebuilt packages are provided by [https://yocto.dave.eu/desk-mp1-l-1.0.1/ this repository] that DAVE Embedded Systems makes available for its customers.
  
== apt-get ==
+
=== apt-get ===
The following instructions detail how to use apt-get for installing packages with Yocto repositories created by DAVE's build system for DESK-MX8M-L.
+
The following instructions detail how to use apt-get for installing packages with Yocto repositories created by DAVE's build system for DESK-MP1-L.
  
===Configuring <code>apt</code>===
+
====Configuring <code>apt</code>====
 
Edit the file <code>/etc/apt/apt.conf</code> like this:
 
Edit the file <code>/etc/apt/apt.conf</code> like this:
 
<pre>
 
<pre>
APT::Architecture "arm64";
+
root@desk-mp1:~# cat /etc/apt/apt.conf
 +
APT::Architecture "armhf";
 
APT::Get::AllowUnauthenticated "true";
 
APT::Get::AllowUnauthenticated "true";
 
Acquire::Languages "none";
 
Acquire::Languages "none";
Line 33: Line 31:
 
Edit the file <code>/etc/apt/sources.list.d/debian-10.list</code> like this:
 
Edit the file <code>/etc/apt/sources.list.d/debian-10.list</code> like this:
 
<pre class="board-terminal">
 
<pre class="board-terminal">
root@desk-mx8mp:~# cat /etc/apt/sources.list.d/debian-10.list
+
root@desk-mp1:~# cat /etc/apt/sources.list.d/debian-10.list
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ all/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ all/
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ aarch64/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ cortexa7t2hf-neon-vfpv4/
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ aarch64-mx8mp/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ desk_mp1/
 
</pre>
 
</pre>
  
Line 48: Line 46:
  
 
<pre class="board-terminal">
 
<pre class="board-terminal">
root@desk-mx8mp:~# rm -rf /var/lib/apt/lists/*
+
root@desk-mp1:~# rm -rf /var/lib/apt/lists/*
root@desk-mx8mp:~# apt-get clean
+
root@desk-mp1:~# apt-get clean
root@orca:~# apt-get update
+
root@desk-mp1:~# apt-get update
0% [Working]
+
 
Ign:1 http://yocto.dave.eu/imx-5.4.70-2.3.0 all/ InRelease
+
The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
Ign:2 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ InRelease
+
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.
Ign:3 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64-mx8mp/ InRelease
+
 
Get:4 http://yocto.dave.eu/imx-5.4.70-2.3.0 all/ Release [1213 B]
+
Ign:1 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ InRelease
Get:5 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ Release [1217 B]
+
Ign:2 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ InRelease
Get:6 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64-mx8mp/ Release [1223 B]
+
Ign:3 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ InRelease
Ign:7 http://yocto.dave.eu/imx-5.4.70-2.3.0 all/ Release.gpg
+
Get:4 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release [1215 B]
Ign:8 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ Release.gpg
+
Get:5 http://packages.openstlinux.st.com/4.1 kirkstone InRelease [3459 B]
Ign:9 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64-mx8mp/ Release.gpg
+
Get:6 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release [1235 B]
Get:10 http://yocto.dave.eu/imx-5.4.70-2.3.0 all/ Packages [146 kB]
+
Get:7 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release [1220 B]
Get:11 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ Packages [2848 kB]
+
Ign:8 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release.gpg
Get:12 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64-mx8mp/ Packages [283 kB]
+
Ign:9 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release.gpg
Fetched 3280 kB in 6s (545 kB/s)
+
Ign:10 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release.gpg
 +
Get:11 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Packages [158 kB]
 +
Get:12 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Packages [4123 kB]
 +
Get:13 http://packages.openstlinux.st.com/4.1 kirkstone/untested armhf Packages [1251 kB]
 +
Get:14 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Packages [238 kB]
 +
Get:15 http://packages.openstlinux.st.com/4.1 kirkstone/updates armhf Packages [30.9 kB]
 +
Get:16 http://packages.openstlinux.st.com/4.1 kirkstone/main armhf Packages [684 kB]
 +
Fetched 6492 kB in 9s (716 kB/s)
 
Reading package lists... Done
 
Reading package lists... Done
 +
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release (expected all/ but got )
 +
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release (expected cortexa7t2hf-neon-vfpv4/ but got )
 +
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release (expected desk_mp1/ but got )
 
</pre>
 
</pre>
  
Line 71: Line 79:
  
 
<pre>
 
<pre>
sed -i 's/\.\//aarch64\//g' /var/lib/apt/lists/yocto.dave.eu_imx-5.4.70-2.3.0_aarch64_Packages
+
sed -i 's/\.\//cortexa7t2hf-neon-vfpv4\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_cortexa7t2hf-neon-vfpv4_Packages
sed -i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_imx-5.4.70-2.3.0_all_Packages
+
sed -i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_all_Packages
sed -i 's/\.\//aarch64-mx8mp\//g' /var/lib/apt/lists/yocto.dave.eu_imx-5.4.70-2.3.0_aarch64-mx8mp_Packages
+
sed -i 's/\.\//desk%5fmp1\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_desk%5fmp1_Packages
 
</pre>
 
</pre>
  
== Installing packages on target ==
+
=== Installing packages on target ===
  
We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done according to the [[DESK-MX8M-L/Deployment/How_to_configure_the_network_interfaces#Static_IP_address | How to configure the network interfaces]] wiki page.
+
We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done according to the [[DESK-MP1-L/Deployment/How_to_configure_the_network_interfaces#Static_IP_address | How to configure the network interfaces]] wiki page.
 +
 
 +
 
 +
The target is finally ready to install new packages. The following example shows for instance the installation of <code>graphviz</code>:
  
The target is finally ready to install new packages. The following example shows for instance the installation of <code>vim</code>:
 
 
<pre class="board-terminal">
 
<pre class="board-terminal">
root@orca:~# apt-get install vim
+
root@desk-mp1:~# apt-get install graphviz
 
Reading package lists... Done
 
Reading package lists... Done
Building dependency tree
+
Building dependency tree... Done
 
Reading state information... Done
 
Reading state information... Done
The following additional packages will be installed:
 
  vim-common vim-help vim-syntax vim-tutor vim-vimrc
 
 
The following NEW packages will be installed:
 
The following NEW packages will be installed:
   vim vim-common vim-help vim-syntax vim-tutor vim-vimrc
+
   graphviz
0 upgraded, 6 newly installed, 0 to remove and 20 not upgraded.
+
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 6584 kB of archives.
+
Need to get 2007 kB of archives.
 
After this operation, 0 B of additional disk space will be used.
 
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
+
Get:1 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ graphviz 2.50.0-r0.0 [2007 kB]
Get:1 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim 8.1.1518-r0 [1051 kB]
+
Fetched 2007 kB in 1s (2522 kB/s)
Get:2 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-common 8.1.1518-r0 [2314 kB]
+
 
Get:3 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-help 8.1.1518-r0 [1757 kB]
+
The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
Get:4 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-syntax 8.1.1518-r0 [1049 kB]
+
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.
Get:5 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-tutor 8.1.1518-r0 [411 kB]
+
 
Get:6 http://yocto.dave.eu/imx-5.4.70-2.3.0 aarch64/ vim-vimrc 8.1.1518-r0 [1596 B]
+
Selecting previously unselected package graphviz.
Fetched 6584 kB in 9s (660 kB/s)
+
(Reading database ... 28119 files and directories currently installed.)
Selecting previously unselected package vim.
+
Preparing to unpack .../graphviz_2.50.0-r0.0_armhf.deb ...
(Reading database ... 71726 files and directories currently installed.)
+
Unpacking graphviz (2.50.0-r0.0) ...
Preparing to unpack .../vim_8.1.1518-r0_arm64.deb ...
+
Setting up graphviz (2.50.0-r0.0) ...
Unpacking vim (8.1.1518-r0) ...
 
Selecting previously unselected package vim-common.
 
Preparing to unpack .../vim-common_8.1.1518-r0_arm64.deb ...
 
Unpacking vim-common (8.1.1518-r0) ...
 
Selecting previously unselected package vim-help.
 
Preparing to unpack .../vim-help_8.1.1518-r0_arm64.deb ...
 
Unpacking vim-help (8.1.1518-r0) ...
 
Selecting previously unselected package vim-syntax.
 
Preparing to unpack .../vim-syntax_8.1.1518-r0_arm64.deb ...
 
Unpacking vim-syntax (8.1.1518-r0) ...
 
Selecting previously unselected package vim-tutor.
 
Preparing to unpack .../vim-tutor_8.1.1518-r0_arm64.deb ...
 
Unpacking vim-tutor (8.1.1518-r0) ...
 
Selecting previously unselected package vim-vimrc.
 
Preparing to unpack .../vim-vimrc_8.1.1518-r0_arm64.deb ...
 
Unpacking vim-vimrc (8.1.1518-r0) ...
 
Setting up vim (8.1.1518-r0) ...
 
update-alternatives: Linking /bin/vi to /usr/bin/vim.vim
 
update-alternatives: Linking /usr/bin/vim to /usr/bin/vim.vim
 
update-alternatives: Linking /usr/bin/xxd to /usr/bin/xxd.vim
 
Setting up vim-common (8.1.1518-r0) ...
 
Setting up vim-help (8.1.1518-r0) ...
 
Setting up vim-syntax (8.1.1518-r0) ...
 
Setting up vim-tutor (8.1.1518-r0) ...
 
Setting up vim-vimrc (8.1.1518-r0) ...
 
 
</pre>
 
</pre>
  
== Other useful apt commands ==
+
=== Other useful apt commands ===
  
=== List of configured software repositories ===
+
==== List of configured software repositories ====
 
As shown before, the target is configured for accessing the Yocto repositories as listed in the <code>/etc/apt/sources.list.d</code> apt configuration directory:
 
As shown before, the target is configured for accessing the Yocto repositories as listed in the <code>/etc/apt/sources.list.d</code> apt configuration directory:
  
 
<pre class="board-terminal">
 
<pre class="board-terminal">
root@desk-mx8mp:~# cat /etc/apt/sources.list.d/debian-10.list
+
root@desk-mp1:~# cat /etc/apt/sources.list.d/debian-10.list
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ all/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ all/
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ aarch64/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ cortexa7t2hf-neon-vfpv4/
deb [trusted=yes] http://yocto.dave.eu/imx-5.4.70-2.3.0/ aarch64-mx8mp/
+
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ desk_mp1/
 
</pre>
 
</pre>
  
=== Search for packages ===
+
==== Search for packages ====
  
 
To search for an available package into the current configured channels use <code>apt-cache search</code>
 
To search for an available package into the current configured channels use <code>apt-cache search</code>
Line 150: Line 133:
  
 
<pre class="board-terminal">
 
<pre class="board-terminal">
root@desk-mx8mp:~# apt-cache search vim
+
root@desk-mp1:~# apt-cache search vim
vim-dbg - Vi IMproved - enhanced vi editor - Debugging files
+
u-boot-tools-mkenvimage - U-Boot bootloader tools
vim - Vi IMproved - enhanced vi editor
 
 
vim-common - Vi IMproved - enhanced vi editor
 
vim-common - Vi IMproved - enhanced vi editor
 +
vim-dev - Vi IMproved - enhanced vi editor - Development files
 +
vim-doc - Vi IMproved - enhanced vi editor - Documentation files
 +
vim-help - Vi IMproved - enhanced vi editor
 
vim-src - Vi IMproved - enhanced vi editor - Source files
 
vim-src - Vi IMproved - enhanced vi editor - Source files
 +
vim-syntax - Vi IMproved - enhanced vi editor
 +
vim-tiny-dev - Vi IMproved - enhanced vi editor  (with tiny features) - Development files
 +
vim-tiny-src - Vi IMproved - enhanced vi editor  (with tiny features) - Source files
 +
vim-tiny - Vi IMproved - enhanced vi editor  (with tiny features)
 +
vim-tools - Vi IMproved - enhanced vi editor
 
vim-tutor - Vi IMproved - enhanced vi editor
 
vim-tutor - Vi IMproved - enhanced vi editor
 
vim-vimrc - Vi IMproved - enhanced vi editor
 
vim-vimrc - Vi IMproved - enhanced vi editor
vim-syntax - Vi IMproved - enhanced vi editor
+
vim - Vi IMproved - enhanced vi editor
vim-tools - Vi IMproved - enhanced vi editor
 
vim-help - Vi IMproved - enhanced vi editor
 
vim-dev - Vi IMproved - enhanced vi editor - Development files
 
vim-doc - Vi IMproved - enhanced vi editor - Documentation files
 
root@desk-mx8mp:~#
 
 
</pre>
 
</pre>
  
=== List of installed packages ===
+
==== List of installed packages ====
  
 
User can see the list of installed packages with <code>dpkg --get-selections | sed 's:install$::'</code> (sed removes the ''install'' string from the output list)
 
User can see the list of installed packages with <code>dpkg --get-selections | sed 's:install$::'</code> (sed removes the ''install'' string from the output list)
Line 171: Line 156:
 
<pre>
 
<pre>
 
acl
 
acl
acl-dev
 
 
adwaita-icon-theme-symbolic
 
adwaita-icon-theme-symbolic
 
alsa-conf
 
alsa-conf
 +
alsa-plugins
 +
alsa-plugins-pulseaudio-conf
 
alsa-state
 
alsa-state
 +
alsa-state-stm32mp1
 
alsa-states
 
alsa-states
alsa-tools
+
alsa-topology-conf
alsa-utils
+
alsa-ucm-conf
alsa-utils-aconnect
 
alsa-utils-alsactl
 
alsa-utils-alsaloop
 
alsa-utils-alsamixer
 
alsa-utils-alsatplg
 
 
...
 
...
 
[snip]
 
[snip]
 
...
 
...
volatile-binds-dev
+
weston-init
wayland
+
wget
wayland-dev
 
which
 
which-dev
 
 
wireless-regdb-static
 
wireless-regdb-static
wireless-tools
 
 
wpa-supplicant
 
wpa-supplicant
 
wpa-supplicant-cli
 
wpa-supplicant-cli
 
wpa-supplicant-passphrase
 
wpa-supplicant-passphrase
 
xinetd
 
xinetd
 +
xkeyboard-config
 +
xxhash
 
xz
 
xz
xz-dev
 
root@desk-mx8mm:~#
 
 
</pre>
 
</pre>
 +
 +
----
 +
 +
[[Category:ETRA]] [[Category:ETRA_SBC]]

Latest revision as of 11:30, 8 January 2024

History
Issue Date Notes
2023/08/31 DESK-MP1-L-1.0.1 release



Management of prebuilt packages[edit | edit source]

During the development of custom applications, developers generally realize that they need to add libraries and other software packages to the root file systems to make their code run properly. If these packages are prebuilt, developers can install them onto the root file system very easily. By configuring the target as described in this document, they achieve a user experience similar to the one you have with a desktop Linux distro such as Ubuntu. DESK-MP1-L uses by default the deb package format. As such, apt commands can be used for package management. Prebuilt packages are provided by this repository that DAVE Embedded Systems makes available for its customers.

apt-get[edit | edit source]

The following instructions detail how to use apt-get for installing packages with Yocto repositories created by DAVE's build system for DESK-MP1-L.

Configuring apt[edit | edit source]

Edit the file /etc/apt/apt.conf like this:

root@desk-mp1:~# cat /etc/apt/apt.conf
APT::Architecture "armhf";
APT::Get::AllowUnauthenticated "true";
Acquire::Languages "none";

Edit the file /etc/apt/sources.list.d/debian-10.list like this:

root@desk-mp1:~# cat /etc/apt/sources.list.d/debian-10.list
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ all/
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ cortexa7t2hf-neon-vfpv4/
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ desk_mp1/

Execute the following commands in order to re-create the apt cache based on the new server's list:

rm -rf /var/lib/apt/lists/*
apt-get clean
apt-get update
root@desk-mp1:~# rm -rf /var/lib/apt/lists/*
root@desk-mp1:~# apt-get clean
root@desk-mp1:~# apt-get update

The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Ign:1 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ InRelease
Ign:2 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ InRelease
Ign:3 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ InRelease
Get:4 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release [1215 B]
Get:5 http://packages.openstlinux.st.com/4.1 kirkstone InRelease [3459 B]
Get:6 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release [1235 B]
Get:7 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release [1220 B]
Ign:8 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release.gpg
Ign:9 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release.gpg
Ign:10 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release.gpg
Get:11 http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Packages [158 kB]
Get:12 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Packages [4123 kB]
Get:13 http://packages.openstlinux.st.com/4.1 kirkstone/untested armhf Packages [1251 kB]
Get:14 http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Packages [238 kB]
Get:15 http://packages.openstlinux.st.com/4.1 kirkstone/updates armhf Packages [30.9 kB]
Get:16 http://packages.openstlinux.st.com/4.1 kirkstone/main armhf Packages [684 kB]
Fetched 6492 kB in 9s (716 kB/s)
Reading package lists... Done
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 all/ Release (expected all/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ Release (expected cortexa7t2hf-neon-vfpv4/ but got )
W: Conflicting distribution: http://yocto.dave.eu/desk-mp1-l-1.0.1 desk_mp1/ Release (expected desk_mp1/ but got )

Then, modify the cached package list due to the proper DAVE's server configuration:

sed -i 's/\.\//cortexa7t2hf-neon-vfpv4\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_cortexa7t2hf-neon-vfpv4_Packages
sed -i 's/\.\//all\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_all_Packages
sed -i 's/\.\//desk%5fmp1\//g' /var/lib/apt/lists/yocto.dave.eu_desk-mp1-l-1.0.1_desk%5fmp1_Packages

Installing packages on target[edit | edit source]

We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done according to the How to configure the network interfaces wiki page.


The target is finally ready to install new packages. The following example shows for instance the installation of graphviz:

root@desk-mp1:~# apt-get install graphviz
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  graphviz
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 2007 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://yocto.dave.eu/desk-mp1-l-1.0.1 cortexa7t2hf-neon-vfpv4/ graphviz 2.50.0-r0.0 [2007 kB]
Fetched 2007 kB in 1s (2522 kB/s)

The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA).
The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses.

Selecting previously unselected package graphviz.
(Reading database ... 28119 files and directories currently installed.)
Preparing to unpack .../graphviz_2.50.0-r0.0_armhf.deb ...
Unpacking graphviz (2.50.0-r0.0) ...
Setting up graphviz (2.50.0-r0.0) ...

Other useful apt commands[edit | edit source]

List of configured software repositories[edit | edit source]

As shown before, the target is configured for accessing the Yocto repositories as listed in the /etc/apt/sources.list.d apt configuration directory:

root@desk-mp1:~# cat /etc/apt/sources.list.d/debian-10.list
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ all/
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ cortexa7t2hf-neon-vfpv4/
deb [trusted=yes] http://yocto.dave.eu/desk-mp1-l-1.0.1/ desk_mp1/

Search for packages[edit | edit source]

To search for an available package into the current configured channels use apt-cache search

Please note that this will show all packages, it's usually more useful to grep for a pattern, e.g.:

root@desk-mp1:~# apt-cache search vim
u-boot-tools-mkenvimage - U-Boot bootloader tools
vim-common - Vi IMproved - enhanced vi editor
vim-dev - Vi IMproved - enhanced vi editor - Development files
vim-doc - Vi IMproved - enhanced vi editor - Documentation files
vim-help - Vi IMproved - enhanced vi editor
vim-src - Vi IMproved - enhanced vi editor - Source files
vim-syntax - Vi IMproved - enhanced vi editor
vim-tiny-dev - Vi IMproved - enhanced vi editor  (with tiny features) - Development files
vim-tiny-src - Vi IMproved - enhanced vi editor  (with tiny features) - Source files
vim-tiny - Vi IMproved - enhanced vi editor  (with tiny features)
vim-tools - Vi IMproved - enhanced vi editor
vim-tutor - Vi IMproved - enhanced vi editor
vim-vimrc - Vi IMproved - enhanced vi editor
vim - Vi IMproved - enhanced vi editor

List of installed packages[edit | edit source]

User can see the list of installed packages with dpkg --get-selections | sed 's:install$::' (sed removes the install string from the output list)

acl
adwaita-icon-theme-symbolic
alsa-conf
alsa-plugins
alsa-plugins-pulseaudio-conf
alsa-state
alsa-state-stm32mp1
alsa-states
alsa-topology-conf
alsa-ucm-conf
...
[snip]
...
weston-init
wget
wireless-regdb-static
wpa-supplicant
wpa-supplicant-cli
wpa-supplicant-passphrase
xinetd
xkeyboard-config
xxhash
xz