Red Hat: Difference between revisions

From IoWiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision 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 15: Line 27:
...and the RPM tools.
...and the RPM tools.


{{code|inline=y|lang=bash|dnf install -y rpmdevtools rpmlint}}
{{code|inline=y|lang=bash|dnf install rpmdevtools rpmlint}}


===Initialize an RPM build environment===
===Initialize an RPM build environment===

Latest revision as of 22:46, 1 September 2023

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...

dnf groupinstall "Development Tools" "Development Libraries"

...and the RPM tools.

dnf install 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.

External links