How to create rpm package (.sh file to rpm package)
Hi
i have created backup.sh file , I want this to create as a rpm installation package .please help me out how to do this ? |
You are not clear enough.
Do you want to make a shell script which will install RPM package? Same as you install it on terminal. Code:
$ rpm -ivh file.rpm |
Setting up the rpm-build environment in /home/<name>/ :
# 13 http://www.linuxquestions.org/questi...1-a-766486/#13 Simplified build example : $ mkdir -p rpms/BUILDROOT/script-1.0-1.i386/usr/bin/ .. and copy the script.sh to rpms/BUILDROOT/script-1.0-1.i386/usr/bin/ Write a "script.spec". This is my tested example : Code:
Summary: None .. And the rpm package 'script-1.0-1.i386.rpm' is created. . |
All times are GMT -5. The time now is 02:01 AM. |