logrotate
-
3.8.6
-
4.el7.x86_64
[root@study ~]#
rpm
-
q logrotating
package logrotating is not installed
#
注意到,系
统会
去找是否有安
装
后面½的
软
件名
称
。注意,不必要加上版本喔!
#
至于
显
示的
½
果,一看就知道有
没
有安
装
啦!
范例二:列出上
题当
中,
属
于
该软
件所提供的所有目
录
与
文件
:
[root@study ~]#
rpm
-
ql logrotate
/etc/cron.daily/logrotate
/etc/logrotate.conf
....(
以下省略
)....
#
可以看出
该软
件到底提供了多少的
文件
与目
录
,也可以追
踪软
件的
数
据。
范例三:列出
logrotate
这个软
件的相
关说
明
数
据:
[root@study ~]#
rpm
-
qi logrotate
Name : logrotate
#
软
件名
称
Version : 3.8.6
#
软
件的版本
Release : 4.el7
#
释
出的版本
Architecture: x86_64
#
编译时
所
针对
的硬件等
级
Install Date: Mon 04 May 2015 05:52:36 PM CST
#
这个软
件安
装
到本系
统
的
时间
Group :
System Environment/Base
#
软
件是放再哪一
个软
件群
组
中
Size : 102451
#
软
件的大小
License : GPL+
#
释
出的授
权
方式
Signature : RSA/SHA256, Fri 04 Jul 2014 11:34:56 AM CST, Key ID 24c6a8a7f4a80eb5
Source RPM : logrotate
-
3.8.6
-
4.el7.src.rpm
#
这
就是
SRPM
的檔名
Build Date : Tue 10 Jun 2014 05:58:02 AM CST
#
软
件
编译
打包的
时间
Build Host : worker1.bsys.centos.org
#
在哪一部主机上面
编译
的
Relocations : (not relocatable)
Packager : CentOS BuildSystem
<http://bugs.centos.org>
Vendor : CentOS
URL : https://fedorahosted.org/logrotate/
Summary : Rotates, compresses, removes and mails system log files
Description :
#
这个
是
详细
的描述!
The logrotate utility is desi
gned to simplify the administration of
log files on a system which generates a lot of log files. Logrotate
allows for the automatic rotation compression, removal and mailing of
log files. Logrotate can be set to handle a log file daily, weekly,
monthly o
r when the log file gets to a certain size. Normally,
logrotate runs as a daily cron job.
Install the logrotate package if you need a utility to deal with the
log files on your system.
#
列出
该软
件的
information (
信息
)
,里面的信息可多
着
呢,包括了
软
件名
称
、
#
版本、
开发
商、
SRPM
文件名、打包次
数
、
简单说
明信息、
软
件打包者、