centos8赋予当前用户rpm文件所有权,并安装rpm文件 对test.txt文件赋予当前登录用户所有权: chmod 777 test.rpm 安装该rpm文件: rpm -ivh test.rpm end.