如何在rhel7中使用smstools

问题描述:

我想在rhel7中使用smstools。但是我无法获得正确的转速。 请帮忙。如何在rhel7中使用smstools

我试过了从互联网上获得的rpm。 安装软件包时出现以下错误。

yum search显示输出。

[[email protected] ~]# yum search sms 
Loaded plugins: langpacks, product-id, subscription-manager 
This system is not registered to Red Hat Subscription Management. You can  use subscription-manager to register. 
file:///root/Downloads/smstools3-3.1.15-1.1.x86_64.rpm/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /root/Downloads/smstools3-3.1.15- 1.1.x86_64.rpm/repodata/repomd.xml" 
Trying other mirror. 
=============================== N/S matched: sms =============================== 
smstools3.x86_64 : Send text messages via GSM modems 

Name and summary matches only, use "search all" for everything. 

但是用yum时insatll得到以下错误

[[email protected] ~]# yum install smstools3.x86_64 
Loaded plugins: langpacks, product-id, subscription-manager 
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 
file:///root/Downloads/smstools3-3.1.15-1.1.x86_64.rpm/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /root/Downloads/smstools3-3.1.15-1.1.x86_64.rpm/repodata/repomd.xml" 
Trying other mirror. 
Nothing to do 

我的仓库是这样

[[email protected] ~]# vim /etc/yum.repos.d/smstools3-3.1.15-1.1.x86_64.rpm.repo 

[smstools3-3.1.15-1.1.x86_64.rpm] 
name=added from: smstools3-3.1.15-1.1.x86_64.rpm 
baseurl=file:///root/Downloads/smstools3-3.1.15-1.1.x86_64.rpm 
enabled=1 
gpgcheck=0 
skip_if_unavailable = 1 
keepcache = 0 

任何人都可以帮助...

我能解决问题。

首先将rpm复制到目录。

cp /root/Downloads/smstools3-3.1.15-1.1.x86_64.rpm /root/sms 

话又说回来

yum-config-manager --add-repo=///root/sms 

创建存储库将目录后和执行createrepo。

这解决了我的问题。