Skip to main content

RPM Install the software into a non-default place

When installing, please specify the following options.

--relocate--badreloc
Example:[user@localhost ~]$ sudo rpm -ivh --relocate /=/usr/local/hcp_tools --badreloc hcp-1.3.5-4.el9.x86_64.rpm

You can go to use clients without any such changes.

Other hcp commands such as hsync, hrm, hcp-ls, hmkdir, hpwd, hmv, hln, hchmod and hchown can be installed by similar instructions.

When uninstalling, you just make it in a normal way with specifying package names.

Do not specify --relocate and --badreloc.

Example:[user@localhost ~]$ sudo rpm -e hcp

When commands are installed on non-default place, their help options (-V) shows the following information about the place.

[user@localhost bin]$ ./hcp-ls -Vhcp-ls client (hcp-ls) 1.3.5_4 / Linux (HpFP2 2.0.0.91_21 WSAPI 0.0.1.30 WS 4.2.0-1)Installed prefix: /usr/local/hcp_tools (/usr/local/hcp_tools/usr/bin/hcp-ls)

In cases where any prefix is not detected.

[user@localhost temp_bin]$ ./hcp-ls -Vhcp-ls client (hcp-ls) 1.3.5_4 / Linux (HpFP2 2.0.0.91_21 WSAPI 0.0.1.30 WS 4.2.0-1)Command placed at : /home/user/hcp_tools/temp_bin/hcp-ls