Amazon Linuxへの他のソフトウェアをインストールする

Amazon Linuxへの他のソフトウェアをインストールする

Amazon Lightsail クラウドで Amazon Linux インスタンスを作成しました。これでMosquitto buyをインストールし、次のコマンドを入力したいと思います。

sudo yum install mosquitto

ただし、システムではこれを見つけることができません。

UPD

epelリポジトリを追加してみました。

sudo yum install -y https://dl.fedoraproject.org/pub/epel/e
pel-release-latest-7.noarch.rpm

出力を取得します。

Loaded plugins: priorities, update-motd, upgrade-helper
No such command: mosquitto. Please use /usr/bin/yum --help
[ec2-user@ip-172-26-11-216 ~]$ sudo yum install mosquitto
Loaded plugins: priorities, update-motd, upgrade-helper
822 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mosquitto.x86_64 0:1.6.7-1.el7 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: mosquitto-1
.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: mosquitto-1.6.7-1.el7.x86
_64
--> Processing Dependency: libwebsockets.so.13()(64bit) for package: mosquitto-1.6.7-1.el7
.x86_64
--> Running transaction check
---> Package libwebsockets.x86_64 0:3.0.1-2.el7 will be installed
--> Processing Dependency: libuv.so.1()(64bit) for package: libwebsockets-3.0.1-2.el7.x86_
64
---> Package mosquitto.x86_64 0:1.6.7-1.el7 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: mosquitto-1
.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: mosquitto-1.6.7-1.el7.x86
_64
--> Running transaction check
---> Package libuv.x86_64 1:1.33.0-2.el7 will be installed
---> Package mosquitto.x86_64 0:1.6.7-1.el7 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: mosquitto-1
.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: systemd for package: mosquitto-1.6.7-1.el7.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: mosquitto-1.6.7-1.el7.x86
_64
--> Finished Dependency Resolution
Error: Package: mosquitto-1.6.7-1.el7.x86_64 (epel)
           Requires: libsystemd.so.0()(64bit)
Error: Package: mosquitto-1.6.7-1.el7.x86_64 (epel)
           Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: mosquitto-1.6.7-1.el7.x86_64 (epel)
           Requires: systemd
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

ベストアンサー1

を使用してパッケージをインストールするには、いずれかのリポジトリyumで利用できる必要がありますが、明らかにそうではありません。しかし、彼らのウェブサイトにはリポジトリがありませんrpm(Debianのみ)。したがって、この場合は、以下を使用して手動でインストールする必要があると思います。バイナリインストールする。

おすすめ記事