diff --git a/building/index.md b/building/index.md
index 5b5420b6..baf3a212 100644
--- a/building/index.md
+++ b/building/index.md
@@ -38,9 +38,8 @@ be, install git:
Installing git on Ubuntu (click to expand)
```console
- sudo apt-get update && \
- sudo apt-get upgrade && \
- sudo apt-get install git
+ sudo apt update && \
+ sudo apt install -y git
```
@@ -74,7 +73,6 @@ be, install git:
```console
brew update && \
- brew upgrade && \
brew install git
```
@@ -127,8 +125,8 @@ Firstly, you need to have the docker installed.
- Install required packages
```console
- sudo apt-get update && \
- sudo apt-get install curl \
+ sudo apt update && \
+ sudo apt install -y curl \
ca-certificates \
gnupg \
lsb-release
@@ -265,11 +263,11 @@ There is a list of commands you can use to get them: on both Ubuntu and macOS ho
Intalling required tools for native build on Ubuntu (click to expand)
```console
- sudo apt-get update && \
- sudo apt-get upgrade && \
- sudo apt-get install build-essential \
+ sudo apt update && \
+ sudo apt install -y build-essential \
mtd-utils \
autoconf \
+ pkg-config \
texinfo \
genext2fs \
libtool \
diff --git a/quickstart/armv7m4-stm32l4x6-nucleo.md b/quickstart/armv7m4-stm32l4x6-nucleo.md
index 21685cfb..c7507b8b 100644
--- a/quickstart/armv7m4-stm32l4x6-nucleo.md
+++ b/quickstart/armv7m4-stm32l4x6-nucleo.md
@@ -66,8 +66,8 @@ To communicate with the board you will need to use a UART-USB converter, like `P
How to get picocom and run it without privileges (Ubuntu 22.04)
```console
- sudo apt-get update && \
- sudo apt-get install picocom
+ sudo apt update && \
+ sudo apt install -y picocom
```
To use picocom without sudo privileges run this command and then restart:
@@ -99,14 +99,14 @@ openocd -v
```
- How to get openocd in version 0.11 (Ubuntu 22.04)
+ How to get openocd on Ubuntu
To install from the default repositoriy:
-- use `apt-get`
+- use `apt`
```console
- sudo apt-get install openocd
+ sudo apt install -y openocd
```
- check if the version is correct
@@ -115,19 +115,19 @@ To install from the default repositoriy:
openocd -v
```
-To install manually:
+If you encounter errors install manually from sources (v0.12.0):
-- download `openocd-0.11.0-rc2` from [here](https://launchpad.net/ubuntu/+source/openocd)
-- enter the downloaded directory
+- download, build and install `openocd-0.12.0-1` from sources
```console
- cd openocd-0.11.0-rc2
- ```
-
-- install openocd
-
- ```console
- sudo apt-get install libusb-1.0 && ./configure --enable-stlink && make && sudo make install
+ wget -O- https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/openocd/0.12.0-1build2/openocd_0.12.0.orig.tar.bz2 | \
+ sudo tar xjvf - -C /usr/local/src && \
+ cd /usr/local/src/openocd-0.12.0 && \
+ sudo apt install -y pkg-config \
+ libusb-1.0-0-dev && \
+ ./configure --enable-stlink && \
+ make && \
+ sudo make install
```
- check if the version is correct
diff --git a/quickstart/ia32-generic-qemu.md b/quickstart/ia32-generic-qemu.md
index 54c08dbd..ca614a9d 100644
--- a/quickstart/ia32-generic-qemu.md
+++ b/quickstart/ia32-generic-qemu.md
@@ -16,14 +16,16 @@ Firstly, you need to install QEMU emulator.
- Install the required packages
```console
- sudo apt-get update && \
- sudo apt-get install qemu-kvm \
- qemu virt-manager \
- virt-viewer libvirt-clients \
+ sudo apt update && \
+ sudo apt install -y \
+ qemu-system \
+ virt-manager \
+ virt-viewer \
+ libvirt-clients \
libvirt-daemon-system \
- bridge-utils virtinst \
- libvirt-daemon \
- qemu-system-misc
+ bridge-utils \
+ virtinst \
+ libvirt-daemon
```
- Check if QEMU is properly installed:
diff --git a/quickstart/riscv64-generic-qemu.md b/quickstart/riscv64-generic-qemu.md
index e165ef28..d563c947 100644
--- a/quickstart/riscv64-generic-qemu.md
+++ b/quickstart/riscv64-generic-qemu.md
@@ -17,14 +17,16 @@ Firstly, you need to install QEMU emulator.
- Install the required packages
```console
- sudo apt-get update && \
- sudo apt-get install qemu-kvm \
- qemu virt-manager \
- virt-viewer libvirt-clients \
+ sudo apt update && \
+ sudo apt install -y \
+ qemu-system \
+ virt-manager \
+ virt-viewer \
+ libvirt-clients \
libvirt-daemon-system \
- bridge-utils virtinst \
- libvirt-daemon \
- qemu-system-misc
+ bridge-utils \
+ virtinst \
+ libvirt-daemon
```
- Check if QEMU is properly installed: