Skip to content

Commit

Permalink
user-rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeeeanut committed Aug 21, 2024
1 parent 5fcf400 commit 59685db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 24-Q3/rpm-user.md
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
# 把路径添加到环境变量中
```
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 24-Q3

[05 Install the rpm package to the user path](24-Q3/rpm-user.md)

[04 Build Bazel6.1.0 on RISC-V](24-Q3/build-bazel610-riscv.md)

[03 How to Get SHA256](24-Q3/how-to-get-sha256.md)
Expand Down

0 comments on commit 59685db

Please sign in to comment.