Ci sono due strumenti utili per aiutarti a fornire informazioni aggiuntive sui pacchetti di sistema. Il primo strumento è il gestore di pacchetti yum e il secondo è yumdb . Entrambi gli strumenti visualizzano un diverso tipo di informazioni. L'altra differenza è che yumdb comando può essere utilizzato solo sui pacchetti attualmente installati sul sistema.
gnam info
Il yum comando può visualizzare informazioni sul pacchetto anche se non è attualmente installato. Questo è un modo pratico per richiedere informazioni aggiuntive prima che venga eseguita l'installazione effettiva. Questo può essere fatto usando info opzione. Quello che segue è un output predefinito quando si utilizza yum info per richiedere informazioni su un pacchetto. Nell'esempio seguente cercheremo alcune informazioni aggiuntive su at pacchetto:
# yum info at
Loaded plugins: product-id, subscription-manager
Available Packages
Name : at
Arch : x86_64
Version : 3.1.13
Release : 17.el7
Size : 50 k
Repo : RHEL_7_Disc
Summary : Job spooling tools
URL : http://ftp.debian.org/debian/pool/main/a/at
License : GPLv3+ and GPLv2+ and ISC and MIT and Public Domain
Description : At and batch read commands from standard input or from a specified
: file. At allows you to specify that a command will be run at a
: particular time. Batch will execute commands when the system load
: levels drop to a particular level. Both commands use user's shell.
:
: You should install the at package if you need a utility for
: time-oriented job control. Note: If it is a recurring job that will
: need to be repeated at the same time every day/week, etc. you should
: use crontab instead.
informazioni yumdb
Il diverso insieme di informazioni su qualsiasi pacchetto attualmente installato può essere recuperato da yumdb comando. Il yumdb il comando potrebbe mancare in quanto potrebbe non essere installato sul tuo sistema per impostazione predefinita. Per creare il yumdb comando disponibile devi prima installare yum-utils pacchetto.
[root@rhel7 ~]# yum install yum-utils
Una volta installato puoi usare yumdb comando per ottenere informazioni aggiuntive su qualsiasi pacchetto attualmente installato. Ancora una volta utilizziamo at pacchetto come esempio. Di seguito puoi vedere un output predefinito di yumdb info comando:
[root@rhel7 ~]# yumdb info at
Loaded plugins: product-id
at-3.1.13-17.el7.x86_64
checksum_data = 6257ddee132d91801cf303fe6f0660de6e8da64c2c132203ae54861f3667bdc3
checksum_type = sha256
command_line = install at
from_repo = RHEL_7_Disc
from_repo_revision = 1399448732
from_repo_timestamp = 1399448734
installed_by = 0
reason = user
releasever = 7Server
var_uuid = bd54f3b1-8d8c-4e79-9384-084d9a58d544