mirror of
https://github.com/opsschool/curriculum.git
synced 2026-01-15 12:15:03 +00:00
Update package_management_101.rst
This commit is contained in:
@@ -27,7 +27,7 @@ RPM and yum (RedHat, CentOS, Fedora, Scientific Linux)
|
||||
======================================================
|
||||
|
||||
In the following examples, we will be using the ``dstat`` in our examples. The
|
||||
process however applies to any spftware you may want to install.
|
||||
process however applies to any software you may want to install.
|
||||
|
||||
Yum provides a wrapper around RPM, which can be used to search, and install
|
||||
packages, from multiple package repositories.
|
||||
@@ -170,7 +170,7 @@ dpkg and APT (Debian, Ubuntu)
|
||||
=============================
|
||||
|
||||
In the following examples, we will be using the ``dstat`` in our examples. The
|
||||
process however applies to any spftware you may want to install.
|
||||
process however applies to any software you may want to install.
|
||||
|
||||
apt provides a wrapper around dpkg, which can be used to search, and install
|
||||
packages, from multiple package repositories.
|
||||
@@ -190,7 +190,7 @@ You can install a package through apt, by running:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ apt-get install dstat
|
||||
bash-4.0# apt-get install dstat
|
||||
|
||||
The following NEW packages will be installed:
|
||||
dstat
|
||||
@@ -208,7 +208,7 @@ with the ``dpkg`` command:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ dpkg -i dstat_0.7.2-3_all.deb
|
||||
bash-4.0# dpkg -i dstat_0.7.2-3_all.deb
|
||||
|
||||
Upgrading packages
|
||||
------------------
|
||||
@@ -222,13 +222,13 @@ install it again:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ apt-get install dstat
|
||||
bash-4.0# apt-get install dstat
|
||||
|
||||
To upgrade a package with an deb file, run:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ dpkg -i dstat_0.7.2-3_all.deb
|
||||
bash-4.0# dpkg -i dstat_0.7.2-3_all.deb
|
||||
|
||||
Uninstalling packages
|
||||
---------------------
|
||||
@@ -237,13 +237,13 @@ To uninstall a package using apt, run:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ apt-get remove dstat
|
||||
bash-4.0# apt-get remove dstat
|
||||
|
||||
Similarly, you can uninstall a package with dpkg:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ dpkg -r dstat
|
||||
bash-4.0# dpkg -r dstat
|
||||
|
||||
With APT and dpkg, removing a package still leaves behind any configuration
|
||||
files, in cast you wish to reinstall the package again later. To full delete
|
||||
@@ -251,13 +251,13 @@ packages and their configuration files, you need to ``purge``:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ apt-get purge dstat
|
||||
bash-4.0# apt-get purge dstat
|
||||
|
||||
or:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
bash-4.0$ dpkg -P dstat
|
||||
bash-4.0# dpkg -P dstat
|
||||
|
||||
Querying the dpkg database
|
||||
--------------------------
|
||||
|
||||
Reference in New Issue
Block a user