Creating a Package from Source

Hands-On Lab

 

Photo of Terrence Cox

Terrence Cox

Senior Vice President of Content

Length

00:30:00

Difficulty

Intermediate

RPM packages allow easy distribution through an organization by allowing the use of yum repositories. You can use them to build custom packages or in-house modifications to existing packages. This activity will help you learn how to build simple packages to help you understand the process.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Our development team has written a script they'd like packaged to ease distribution throughout the environment.

The source for the script is currently in the /root directory. You'll need to create a .tar.gz file from that to ensure the packaging software works correctly. You've been asked to use the default directories and package the script as the root user. The script needs to be placed in the /opt/myscript directory. Once the script is packaged, you should install the package and run the script to verify functionality.