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
文件名、打包次
简单说
明信息、
件打包者、