GNU/Linux >> Linux Esercitazione >  >> Linux

Come risolvere l'errore "-bash:xclock:comando non trovato" in CentOS / RHEL

xclock è uno strumento utile per verificare se la variabile DISPLAY è impostata correttamente ed è possibile ottenere un orologio basato su GUI eseguendo il comando "xclock" come mostrato di seguito. Il pacchetto xorgs-x11-apps fornisce il comando xclock.

Installazione del pacchetto che fornisce il comando xclock

1. Controlla il pacchetto che fornisce il binario, usando il comando seguente:

# yum whatprovides xclock
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.cisp.com
 * epel: mirror.cogentco.com
 * extras: mirror.cs.vt.edu
 * nux-dextop: li.nux.ro
 * updates: mirror.vtti.vt.edu
xorg-x11-apps-7.7-7.el7.x86_64 : X.Org X11 applications
Repo        : base
Matched from:
Provides    : xclock

2. Come puoi vedere nell'output sopra, il pacchetto xorgs-x11-apps fornire il comando xclock. Per installare il pacchetto xorg-x11-apps, esegui il comando seguente.

# yum install xorg-x11-apps
...
===================================================================================================================================================================
 Package                                    Arch                                Version                                    Repository                         Size
===================================================================================================================================================================
Installing:
 xorg-x11-apps                              x86_64                              7.7-7.el7                                  base                              307 k
Installing for dependencies:
 libXaw                                     x86_64                              1.0.13-4.el7                               base                              192 k
 libXpm                                     x86_64                              3.5.12-1.el7                               base                               55 k
Transaction Summary
===================================================================================================================================================================
Install  1 Package (+2 Dependent packages)
Total download size: 554 k
Installed size: 1.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libXpm-3.5.12-1.el7.x86_64.rpm                                                                                                       |  55 kB  00:00:00     
(2/3): xorg-x11-apps-7.7-7.el7.x86_64.rpm                                                                                                   | 307 kB  00:00:00     
(3/3): libXaw-1.0.13-4.el7.x86_64.rpm                                                                                                       | 192 kB  00:00:01
...


Linux
  1. comando ifconfig non trovato – CentOS/RHEL 7

  2. Come eseguire il comando Pstack su CentOS/RHEL

  3. “-bash:firewall:comando non trovato” – Come risolvere in CentOS/RHEL 7

  4. Errore LVM "AVVISO:trovati metadati incoerenti" - Come risolvere in CentOS / RHEL

  5. sshpass:comando non trovato errore

ifconfig Comando non trovato su CentOS 8 / RHEL 8 – Correzione rapida

Come risolvere do-release-upgrade:comando non trovato Errore in Ubuntu

Come correggere l'errore "Comando Yum non trovato" in Linux [Aggiornamento 2022]

Come risolvere il comando Ifconfig non trovato su CentOS 7

If...else...if Statement (comando non trovato errore)?

Come risolvere il problema:il comando curl non ha trovato un errore