Linux系统中 普通用户无sudo权限安装 rpm包
001、 查看下系统
[liujiaxin01@PC1 test]$ cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx)

002、测试是否具有sudo权限
[liujiaxin01@PC1 test]$ sudo -l [sudo] password for liujiaxin01: Sorry, user liujiaxin01 may not run sudo on PC1.

003、安装rmp包
[liujiaxin01@PC1 test]$ ls megax-cc-10.2.6-1.x86_64.rpm [liujiaxin01@PC1 test]$ rpm2cpio megax-cc-10.2.6-1.x86_64.rpm | cpio -idmv

004、测试安装效果
[liujiaxin01@PC1 test]$ ls megax-cc-10.2.6-1.x86_64.rpm usr ## 安装后多出了usr目录 [liujiaxin01@PC1 test]$ cd usr/lib64/megax/ ## 进入可执行程序所在目录 [liujiaxin01@PC1 megax]$ ls cef_100_percent.pak cef.pak icudtl.dat locales megax snapshot_blob.bin cef_200_percent.pak chrome-sandbox libcef.so mega_browser natives_blob.bin cef_extensions.pak devtools_resources.pak libgcrypt.so.11 megacc runmega.sh [liujiaxin01@PC1 megax]$ ./megacc ## 调用测试 MEGA-CC has logged the following error: When = 08/26/2025 10:46:10 AM Data file = When AnalysisFile = Message = The analysis (MAO) file you specified does not exist. Please check your spelling and try again. Please see the summary file for warnings/messages Please validate all your inputs and try again. If you think this is a bug, please report it at http://www.megasoftware.net

。

浙公网安备 33010602011771号