如何测试我的 RPM?
How do I test my RPM?
我不熟悉创建 RPM。我创建 - 或者至少尝试过 - 按照以下步骤创建 RPM:https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package
我尝试使用以下命令测试我的 RPM:
$ mock --verbose ../SRPMS/hello-2.8-1.fc20.src.rpm
但是我得到这个错误
ERROR: [Errno 1] Operation not permitted
ERROR: The most common cause for this error is trying to run /usr/sbin/mock as an unprivileged user.
ERROR: Check your path to make sure that /usr/bin/ is listed before /usr/sbin, or manually run /usr/bin/mock to see if that fixes this problem.
还有其他方法可以测试我的 RPM 吗?我什么时候可以做
dnf install myrpmname
?
请。非常感谢。
问题中的第一个建议是 运行 模拟使用 /usr/bin/mock
:
/usr/bin/mock --verbose ../SRPMS/hello-2.8-1.fc20.src.rpm
我想到的第二个是确保您的用户在 mock
组中并重新登录:
usermod -a -G mock <<your username>>
我不熟悉创建 RPM。我创建 - 或者至少尝试过 - 按照以下步骤创建 RPM:https://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package
我尝试使用以下命令测试我的 RPM:
$ mock --verbose ../SRPMS/hello-2.8-1.fc20.src.rpm
但是我得到这个错误
ERROR: [Errno 1] Operation not permitted
ERROR: The most common cause for this error is trying to run /usr/sbin/mock as an unprivileged user. ERROR: Check your path to make sure that /usr/bin/ is listed before /usr/sbin, or manually run /usr/bin/mock to see if that fixes this problem.
还有其他方法可以测试我的 RPM 吗?我什么时候可以做
dnf install myrpmname
? 请。非常感谢。
问题中的第一个建议是 运行 模拟使用 /usr/bin/mock
:
/usr/bin/mock --verbose ../SRPMS/hello-2.8-1.fc20.src.rpm
我想到的第二个是确保您的用户在 mock
组中并重新登录:
usermod -a -G mock <<your username>>