Red Hat: Difference between revisions
Created with some packaging notes and sources. |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Personal notes on the use of Red Hat's Linux distributions and their derivatives (RHEL, Fedora, CentOS, Alma, etc.). | Personal notes on the use of Red Hat's Linux distributions and their derivatives (RHEL, Fedora, CentOS, Alma, etc.). | ||
=Multimedia= | |||
Red Hat is strict about the software with "restricted" licenses that it will distribute, which means additional packages often need to be installed to enable features that "just work" in other distributions. Most of these are supplied by [https://rpmfusion.org/ RPM Fusion]. | |||
==Audacious: AAC playback== | |||
# dnf install faad2 audacious-plugins-freeworld-ffaudio | |||
===Reference=== | |||
* [https://forums.fedoraforum.org/showthread.php?329605-Audacious-cant-play-m4a(AAC)-files Fedora Forums] | |||
=Package Development= | =Package Development= | ||
| Line 10: | Line 22: | ||
Red Hat's term for the usual... | Red Hat's term for the usual... | ||
Old dnf (up to fc40) | |||
{{code|inline=y|lang=bash|dnf groupinstall "Development Tools" "Development Libraries"}} | {{code|inline=y|lang=bash|dnf groupinstall "Development Tools" "Development Libraries"}} | ||
[https://dnf5.readthedocs.io/en/latest/ dnf5] (fc41 onwards) | |||
{{code|inline=y|lang=bash|dnf install @development-tools}} | |||
...and the RPM tools. | ...and the RPM tools. | ||
{{code|inline=y|lang=bash|dnf install | {{code|inline=y|lang=bash|dnf install rpmautospec rpmdevtools rpmlint}} | ||
===Initialize an RPM build environment=== | ===Initialize an RPM build environment=== | ||
Creates the | Creates the directory tree under ~/rpmbuild. | ||
{{code|inline=y|lang=bash|rpmdev-setuptree}} | {{code|inline=y|lang=bash|rpmdev-setuptree}} | ||
| Line 47: | Line 65: | ||
* [https://www.redhat.com/sysadmin/create-rpm-package How to create a Linux RPM package - Enable Sysadmin] | * [https://www.redhat.com/sysadmin/create-rpm-package How to create a Linux RPM package - Enable Sysadmin] | ||
* [https://www.osradar.com/install-development-build-tools-fedora/ How to install the Development and build tools on Fedora 34/33 - osradar] | * [https://www.osradar.com/install-development-build-tools-fedora/ How to install the Development and build tools on Fedora 34/33 - osradar] | ||
[[ja:Red Hat]] | |||
Latest revision as of 11:20, 16 November 2025
Personal notes on the use of Red Hat's Linux distributions and their derivatives (RHEL, Fedora, CentOS, Alma, etc.).
Multimedia
Red Hat is strict about the software with "restricted" licenses that it will distribute, which means additional packages often need to be installed to enable features that "just work" in other distributions. Most of these are supplied by RPM Fusion.
Audacious: AAC playback
# dnf install faad2 audacious-plugins-freeworld-ffaudio
Reference
Package Development
Preparing a development environment, getting upstream sources to modify, and building.
Environment preparation
Install development tools
Red Hat's term for the usual...
Old dnf (up to fc40)
dnf groupinstall "Development Tools" "Development Libraries"
dnf5 (fc41 onwards)
dnf install @development-tools
...and the RPM tools.
dnf install rpmautospec rpmdevtools rpmlint
Initialize an RPM build environment
Creates the directory tree under ~/rpmbuild.
rpmdev-setuptree
Install a package's build dependencies
dnf builddep $PACKAGE
Retrieving upstream sources
Using the package manager
dnf can fetch SRPMs from the repository.
dnf download --source $PACKAGE
Extracting the SRPMs will give you a SPEC, a source tarball, and any distribution patches.
rpm2cpio $PACKAGE.src.rpm | cpio -idmv
Using git
Individual git repositories for packages are accessible from Fedora Package Sources.