RPM: how to get changelog from package

Often there’s a need to get changelog of RPM package. Here is a way to do that: [root@playground ~]# rpm -qp –changelog kernel-2.6.41.9-1.fc15.x86_64.rpm | head * Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.9-1 – Linux 3.1.9 – CVE-2012-0045 kvm: syscall instruction induced guest panic (rhbz 773392) * Wed Jan 11 2012 Josh Boyer <jwboyer@redhat.com>…

Bind: how to get statistics information

To get statistics information about query numbers that Bind has served you need to add next line to configuration file: statistics-file “/var/stats/named.stats”; It should be added in a ‘global’ options statement. After that you need to restart Bind and run: rndc stats Bind will dump statistics to this file. Note that if you run Bind…

munin: fixing ‘Can’t locate object method “new” via package “LWP::UserAgent” ‘

If you get next message Can’t locate object method “new” via package “LWP::UserAgent” at /usr/share/munin/plugins/nginx_request line 106. when you are installing nginx plugins for munin in Debian, this means that you don’t have perl LWP library. Installing it fixes an issue: apt-get install liblwp-useragent-determined-perl After munin-mode restart munin will start to create graphs.