-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Install the rpm package to the user path | ||
|
||
在日常,往往是多个人使用同一台服务器,如果自己想要dnf install或者将某个自己构建的rpm安装到系统的root里,则会有可能影响其他用户的使用,所以这里提供一种将rpm包安装到个人用户下的方法。 | ||
|
||
## 获取rpm包 | ||
|
||
如果想要通过dnf install来安装某个rpm包,可以先通过dnf download下载rpm包。 | ||
|
||
## 安装到个人目录 | ||
|
||
``` | ||
rpm2cpio name.rpm | cpio -idmv | ||
mkdir -p ~/local/namePath | ||
mv ./usr/* ~/local/namePath | ||
vim ~/.bashrc | ||
# 把路径添加到环境变量中 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters