If you want to make RPM package under Linux system, you can use FPM tool to complete it. The FPM tool not only makes RPM package creation easier, but also helps users do some finishing work. Let me introduce the method of making RPM packages using FPM under Linux system.
parameters involved here are:
--pre-install FILE: indicates that the script
before installation to run
--post-install FILE: express installation The script to be run later
--pre-uninstall FILE: indicates the script to be run before uninstalling
--post-uninstall FILE: indicates the script to be run after uninstalling
1, fpm tool installation
# yum -y install ruby rubygems ruby-devel rpm-build
# gem sources -a http://ruby.taobao.org/
# gem sources -r https://rubygems.org/
# gem install fpm
2, package luajit
# mkdir /tmp/luajit
# cd /usr/local/src
# wget http://luajit.org/download/LuaJIT-2.0.4.tar.gz
# tar xvzf LuaJIT-2.0 .4.tar.gz
# cd LuaJIT-2.0.4
# make PREFIX=/usr
# make install PREFIX=/usr DESTDIR=/tmp/luajit
# fpm -s dir -t rpm -n LuaJIT -v 2.0.4 --iteration 1.el7 -C /tmp/luajit/-p /root --description ‘luajit rpm package’ --url ‘http://luajit.org’ Previous123Next page Total 3 pages
Linux file content review, you can use the command to achieve. Cat, tac, more, incl
LVS cluster uses three ip load balancing technologies, namely VS/NAT, VS/TUN and VS
The system needs to clean up the contents of the log file for a long time, but sometimes the log fil
Linux users often use the scp and sftp commands when transferring remote files. How
Linux how to debug multi-process program
Linux using the telnet command method
How to fix the program error prompted by Ubuntu system?
How Linux can improve the copying efficiency of large files
Linux detection and prevention of DDOS attacks skills
Linux how to install and configure MariaDB database
What about Chinese garbled when creating a website through Tomcat under Ubuntu?
How to use the sleep command on Linux
How to modify the Linux desktop resolution
What can I do if I can't access mysql under Linux?
How to open hibernate option win8
Upgrade the Win8 system Chinese version of the computer
Two general methods to help you achieve remote server control
Correctly set windows server 2008 remote desktop
Liunx jdk installation tutorial
Linux CPU real-time monitoring command mpstat introduction