Add prompts to command examples for easier copypasting

This commit is contained in:
Petr Bokoč 2025-03-05 21:01:26 +01:00
commit 61a5e94a38
3 changed files with 19 additions and 43 deletions

View file

@ -278,11 +278,11 @@ as this:
[,console]
----
rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{VENDOR}\n'
$ rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{VENDOR}\n'
foo-0.1-5.el5 Fedora Project
rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{DISTRIBUTION}\n'
$ rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{DISTRIBUTION}\n'
foo-0.1-5.el5 Extras Packages for Enterprise Linux
rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGPGP}\n'
$ rpm -qp foo-0.1-5.el5.i386.rpm --qf '%{NAME}-%{VERSION}-%{RELEASE} %{SIGPGP}\n'
foo-0.1-5.el5 883f030500468e3e4e119cc036217521f611025863009f5fe424c6fe4bc81a57f45722e465e71381dda2f6009f7c08e1743794b5b9a5a4cd149081092801a5d935
----

View file

@ -21,7 +21,7 @@ The following command will enable the `epel-testing` repository persistently.
[,console]
----
dnf config-manager --set-enabled epel-testing
$ dnf config-manager --set-enabled epel-testing
----
Use `dnf repolist` to verify.
@ -30,7 +30,7 @@ run the following command.
[,console]
----
dnf config-manager --set-disabled epel-testing
$ dnf config-manager --set-disabled epel-testing
----
TIP: `dnf distro-sync` will sync the packages to the versions available in the repository.
@ -53,14 +53,14 @@ The following command will enable the `epel-testing` repository for a single upg
[,console]
----
dnf --enablerepo epel-testing upgrade
$ dnf --enablerepo epel-testing upgrade
----
The following command will enable the `epel-testing` repository for a single install transaction.
[,console]
----
dnf --enablerepo epel-testing install <foo>
$ dnf --enablerepo epel-testing install <foo>
----
[[what_to_test_testing_and_reporting_results]]

View file

@ -34,12 +34,8 @@ The EPEL project recommends using the official permalinks on this page to ensure
[,console]
----
dnf config-manager --set-enabled crb
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
$ dnf config-manager --set-enabled crb
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
----
== EL9
@ -57,24 +53,16 @@ install *both* the `epel-release` and `epel-next-release` packages.
[,console]
----
dnf config-manager --set-enabled crb
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel{,-next}-release-latest-9.noarch.rpm
$ dnf config-manager --set-enabled crb
$ dnf install https://dl.fedoraproject.org/pub/epel/epel{,-next}-release-latest-9.noarch.rpm
----
=== RHEL 9
[,console]
----
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
$ subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
----
=== Other RHEL 9 compatible distributions
@ -89,12 +77,8 @@ then install the `epel-release` package.
[,console]
----
dnf config-manager --set-enabled crb
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
$ dnf config-manager --set-enabled crb
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
----
== EL8
@ -103,12 +87,8 @@ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.r
[,console]
----
subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ subscription-manager repos --enable codeready-builder-for-rhel-8-$(arch)-rpms
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
----
=== Other RHEL 8 compatible distributions
@ -123,12 +103,8 @@ then install the `epel-release` package.
[,console]
----
dnf config-manager --set-enabled powertools
----
[,console]
----
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
$ dnf config-manager --set-enabled powertools
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
----
[[end_of_life_releases]]