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
- Host: GitHub
- URL: https://github.com/denezt/build_rpm_default
- Owner: denezt
- License: gpl-2.0
- Created: 2018-05-26T08:40:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-05T22:34:53.000Z (over 1 year ago)
- Last Synced: 2025-01-08T17:58:03.321Z (over 1 year ago)
- Topics: devops, pipeline, rpm
- Language: Shell
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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