An open API service indexing awesome lists of open source software.

https://github.com/denezt/build_rpm_default

Default Scripts for Building Red Hat Packages using RPMBUILD
https://github.com/denezt/build_rpm_default

devops pipeline rpm

Last synced: over 1 year ago
JSON representation

Default Scripts for Building Red Hat Packages using RPMBUILD

Awesome Lists containing this project

README

          

# RPMBUILD Tools
## Default Scripts for Building Red Hat Packages using RPMBUILD

PURPOSE: *Automate the building of RPM Packages.*

OS TYPE: *Red Hat Linux*

DIFFICULTY: *Advanced*

``` bash
# Run once before starting build process.
~> ./install_prereqs.sh
```
``` bash
# Display the help menu.
~> ./create_build_user.sh --help
```
``` bash
# Starts the build process
~> ./create_build_user.sh --start
```
After running the _'create_build_user'_ script you can then execute switch user command:

``` bash
~> su - build
```
``` sh
[build@build-machine ~]$
```
Now, you can start the _`rpmbuild`_ process.
``` sh
# Builds the Complete RPM source and binaries.
[build@build-machine ~]$ rpmbuild -ba displaymsg-1.0/displaymsg.spec
```

### Additional Commands:
``` bash
# Installs the package/programs
rpm -i -v /home/build/rpmbuild/RPMS/x86_64/displaymsg-1.0-1.x86_64.rpm
```
Outputs:
> Preparing packages...

> displaymsg-1.0-1.x86_64