I needed to install a calendar generation package on a Linux system. I had previously used pcal on another Linux system and decided to use it again, since I was familiar with it and found it met my requirements.
I looked for a pcal RPM package. I found that the perl-Calendar-Simple
package contained a pcal program and decided to install it.
I installed the package, which is available from
http://packages.sw.be/perl-Calendar-Simple/ or
RPM PBone. If you are using
the RPMforge repository, you
can install it with yum
or another installer. To configure
yum
to use the RPMForge repository, see
RPMForge Packages and Yum Priorites.
# yum install perl-Calendar-Simple
After I installed the package, I found it installed /usr/bin/pcal
.
That pcal
program was a Perl script. I could use it to
generate the current month's calendar by typing pcal
or a specific
month from the current year with pcal m
, where m
is a number representing a month, e.g. pcal 6
would display
the month of June. Or you can use pcal mm
, e.g. pcal
06
for June. That pcal
can also generate a calendar for a
specific month and year with pcal mm yyyy
, e.g. pcal
06 2009
for the calendar for June 2009.
# pcal 06 2009 June 2009 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
But that pcal
program didn't offer me as many options as
I had with the cal
program that was already installed on the
system. I didn't need anything particularly fancy, but I did need the
capability to generate a calendar in
HTML format, which
the Perl pcal script didn't provide.
References: