Hi Dear Friends,
In this post We would like to share infinity knowladge My Good experience and Best solution For .
Try this it will help you and for more information click here: Laravel Examples.
We hope it can help you...
In this post We would like to share infinity knowladge My Good experience and Best solution For .
Laravel Examples
RPM (RedHat Package Manager) is a package management system for RHEL based systems. You may have seen that all the packages in Redhat based systems have extension .rpm. This tutorial will help you to how to create RPM for your own script
I had created a script to take database backup, Today I have created an RPM file of that script, This is my first RPM created ever. Below are the steps which I follow to do it.
Step 1 – Install Required Packages
First of all, you need to install the required packages on your system to create rpm files.
Step 2 – Create Directory Structure
Go to users home directory, and create required directory structure using below command.
Above command will create a directory structure like below.
In case rpmdev-setuptree command failed to create structure, you can manually create it
Step 3 – Create rpmmacro File
Now create ~/.rpmmacros file, with the following contents. Change the values of red highlighted names
~/.rpmmacros
Step 4 – Copy Files under SOURCES Directory
Copy all your files and scripts folder inside ~/rpmbuild/SOURCES directory, which we need to add in rpm file. For this tutorial, I have used all the files created in our tutorial Advance Bash Script for MySQL.
Create a tarball of your code.
Step 5 – Create SPEC File
Create a spec file ~/rpmbuild/SPECS/mydumpadmin.spec using below content.
~/rpmbuild/SPECS/mydumpadmin.spec
Change package name, script path, archive name, description etc, as per your requirement.
Step 6 – Build RPM
After completing above steps, lets build your rpm by executing following command.
After successful built, a rpm file will created like ~/rpmbuild/RPMS/noarch/mydumpadmin-1-0.noarch.rpm
Install your rpm using the below command. After install check, the files are properly installed as defined location.
Thank You for using this article. I hope above steps will help you to create your own rpm.
Read :
I hope you like this Post, Please feel free to comment below, your Any Idea, suggestion and problems if you face - I am here to Resolve your Any problems.We hope it can help you...
No comments :
Post a Comment