Skip to contentSkip to conversation

manuals: replace "apt-get" by "apt"

PATCH In review Michael Opdenacker 3 participants 4 messages Oct 6, 2021 – Oct 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 manuals: replace "apt-get" by "apt"

Modern Debian based distros (such as Ubuntu) now
use "apt" instead of "apt-get"

Also make sure "apt" is invoked with root privileges (mandatory)

---
 documentation/brief-yoctoprojectqs/index.rst     |  2 +-
 documentation/dev-manual/common-tasks.rst        |  6 +++---
 documentation/ref-manual/system-requirements.rst | 10 +++++-----
 documentation/toaster-manual/setup-and-use.rst   |  2 +-
 documentation/toaster-manual/start.rst           |  2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -1
index 74167befad..c299df3b6a 100644
@@ -80,7 +80,7 @@ distribution:
 
 .. code-block:: shell
 
-  $ sudo apt-get install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
+  $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
 
 .. note::
 
documentation/dev-manual/common-tasks.rst +3 -3
index 71e5d6ef57..45834361bf 100644
@@ -5874,7 +5874,7 @@ system image files much faster.
       use the tool without specifying ``PATH`` even from the root
       account::
 
-         $ sudo apt-get install bmap-tools
+         $ sudo apt install bmap-tools
 
    -  If you are unable to install the ``bmap-tools`` package, you will
       need to build Bmaptool before using it. Use the following command::
@@ -7066,7 +7066,7 @@ to fetch the repository information:
 
 .. code-block:: none
 
-  # apt-get update
+  # sudo apt update
 
 After this step,
 ``apt`` is able to find, install, and upgrade packages from the
@@ -8249,7 +8249,7 @@ might be significant in human-readable form. Here is an example::
 
 
    Alternatively, you can install ``python3-git`` using the appropriate
-   distribution package manager (e.g. ``apt-get``, ``dnf``, or ``zipper``).
+   distribution package manager (e.g. ``apt``, ``dnf``, or ``zipper``).
 
 To see changes to the build history using a web interface, follow the
 instruction in the ``README`` file
documentation/ref-manual/system-requirements.rst +5 -5
index 5e5c105d62..d12e8dfbe3 100644
@@ -120,23 +120,23 @@ supported Ubuntu or Debian Linux distribution:
       its own custom ``/usr/include/linux/soundcard.h`` on the Debian
       system. If you run into this situation, try either of these solutions::
 
-         $ sudo apt-get build-dep qemu
-         $ sudo apt-get remove oss4-dev
+         $ sudo apt build-dep qemu
+         $ sudo apt remove oss4-dev
 
    -  For Debian-8, ``python3-git`` and ``pylint3`` are no longer
-      available via ``apt-get``.
+      available via ``apt``.
       ::
 
          $ sudo pip3 install GitPython pylint==1.9.5
 
 -  *Essentials:* Packages needed to build an image on a headless system::
 
-      $ sudo apt-get install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
+      $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
 
 -  *Documentation:* Packages needed if you are going to build out the
    Yocto Project documentation manuals::
 
-      $ sudo apt-get install make python3-pip
+      $ sudo apt install make python3-pip
       &PIP3_HOST_PACKAGES_DOC;
 
    .. note::
documentation/toaster-manual/setup-and-use.rst +1 -1
index 4f71b58418..0da8326926 100644
@@ -211,7 +211,7 @@ Be sure you meet the following requirements:
 
 -  If you are using Ubuntu, run the following::
 
-      $ sudo apt-get install apache2 libapache2-mod-wsgi-py3 mysql-server python3-pip libmysqlclient-dev
+      $ sudo apt install apache2 libapache2-mod-wsgi-py3 mysql-server python3-pip libmysqlclient-dev
 
 -  If you are using Fedora or a RedHat distribution, run the
    following::
documentation/toaster-manual/start.rst +1 -1
index c687a82531..cab5d1f673 100644
@@ -18,7 +18,7 @@ to run the Yocto Project. To do this, follow the instructions in the
 the Yocto Project Development Tasks Manual. For Ubuntu/Debian, you might
 also need to do an additional install of pip3. ::
 
-   $ sudo apt-get install python3-pip
+   $ sudo apt install python3-pip
 
 Establishing Toaster System Dependencies
 ========================================
Signature · 1 line
2.25.1
#1 lore raw
Quoted 41 lines · Michael Opdenacker

Modern Debian based distros (such as Ubuntu) now
use "apt" instead of "apt-get"

Also make sure "apt" is invoked with root privileges (mandatory)

---
 documentation/brief-yoctoprojectqs/index.rst     |  2 +-
 documentation/dev-manual/common-tasks.rst        |  6 +++---
 documentation/ref-manual/system-requirements.rst | 10 +++++-----
 documentation/toaster-manual/setup-and-use.rst   |  2 +-
 documentation/toaster-manual/start.rst           |  2 +-
 5 files changed, 11 insertions(+), 11 deletions(-)
documentation/brief-yoctoprojectqs/index.rst +1 -1
index 74167befad..c299df3b6a 100644
@@ -80,7 +80,7 @@ distribution:
 
 .. code-block:: shell
 
-  $ sudo apt-get install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
+  $ sudo apt install &UBUNTU_HOST_PACKAGES_ESSENTIAL;
 
 .. note::
 
documentation/dev-manual/common-tasks.rst +1 -1
index 71e5d6ef57..45834361bf 100644
@@ -5874,7 +5874,7 @@ system image files much faster.
       use the tool without specifying ``PATH`` even from the root
       account::
 
-         $ sudo apt-get install bmap-tools
+         $ sudo apt install bmap-tools
 
    -  If you are unable to install the ``bmap-tools`` package, you will
       need to build Bmaptool before using it. Use the following command::

documentation/dev-manual/common-tasks.rst to fetch the repository information: · line 7070

Quoted 6 lines
documentation/dev-manual/common-tasks.rst +1 -1
@@ -7066,7 +7066,7 @@ to fetch the repository information:
 
 .. code-block:: none
 
-  # apt-get update
+  # sudo apt update
 

I think the prompt there is "#" suggesting you have root privileges. Maybe that needs to be $ now?

Cheers,

Richard

author Applied
#3 lore raw
Quoted 11 lines · Quentin Schulz

Hi Michael,

Quoted 6 lines · Michael Opdenacker

Modern Debian based distros (such as Ubuntu) now
use "apt" instead of "apt-get"

Also make sure "apt" is invoked with root privileges (mandatory)

With Richard's change,

Applied to master-next (with Richard's change).

Thanks for the review!
Cheers
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com