Most people on Linux use the rpm -i xxxx.rpm command to install the RPM package. In this case, the RPM will be installed in the default directory. What if I don't want to install RPM in this directory? Here's a look at how Linux can modify the RPM installation directory.
First, use the following command to see what the default installation directory of the RPM package, for example:
easwy: ~ $ rpm -qpl ext3grep-0.10.0-1.el5.rf .i386.rpm
/usr/bin/ext3grep
/usr/share/doc/ext3grep-0.10.0
/usr/share/doc/ext3grep-0.10 .0/INSTALL
/usr/share/doc/ext3grep-0.10.0/LICENSE.GPL2
/usr/share/doc/ext3grep-0.10.0/NEWS
/usr/share/doc/ext3grep-0.10.0/README
The above command lists the location where each file will be installed. Now we only need to re-use the –relocate parameter to install the directory. Just locate it:
rpm -i --relocate /usr/bin=/home/easwy/bin --relocate /usr/share/doc=/home/easwy/doc ext3grep-0.10.0 -1.el5.rf.i386.rpm
Now, ext3grep will be installed into the /home/easwy/bin directory.
The above is the way Linux modifies the RPM installation directory. If you do not have root privileges and cannot install the RPM in the default directory, you can use this method to modify the RPM installation directory.
There are many ways to produce a MAC address under Linux. In addition to the common shell generation
If the Linux system forgets the root password, you can modify the password in singl
We all know that shell commands can be easily executed under Linux. Can you execute shell commands o
Users who are accustomed to using Windows systems are inevitably somewhat uncomfort
What is optimized for Linux kernel 4.2?
Summary of methods using Markdown on Linux
How to solve the error when modifying the Locale in the Ubuntu system?
Linux system CentOS 7 to build a high-availability cluster method
What should I do if the ASUS F81se computer installs Ubuntu 12.04?
Linux installation and configuration JDK and Eclipse steps
How to detect the device name and writing speed of DVD burner under Linux
How to solve the problem of multi-line display of wget download progress bar in CentOS
Linux using LGOGDownloader to download GOG games skills
What should I do if the Linux system time zone is wrong?
Linux system uses logrotate to cut Tomcat logs
How to install and use http_load to stress test the server in Linux
Let XP speed up the booting several tips
Win7 can't run slmgr.vbs -dlv to view the activation information how to solve
Microsoft and Windows are left out?
What is the MDB file of Win7 system? How to open Win7 system MDB file?
How to set up VPN connection for Win8.1/Win8
Win7 system closes the method of Sogou input method expression function
Experts to view the steps of the Win2003 system log
How to set Win7 computer to sleep when not disconnecting WiFi Win7 does not disconnect WiFi tutorial