Monthly Archives: April 2011

pear list

I’ve been tinkering with PEAR at work, switching between using portage to install stuff and sometimes using pear directly to install it.

One thing that’d be nice is to get a list of the packages installed in pear command-line syntax. I.e. pear install MDB2-beta.

So, here’s a quick reference to convert the output of “pear list” to a list you can use with pear:

pear list | egrep "(stable|beta|alpha)$" | while read line; do echo $line | cut -d " " -f 1,3 --output-delimiter=-; done

A sample output would be:

$ pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.7 stable
Auth_SASL 1.0.4 stable
Console_Color 1.0.3 stable
Console_Getopt 1.2.3 stable
Console_Table 1.1.4 stable
Crypt_HMAC 1.0.1 stable

to this:

Archive_Tar-stable
Auth_SASL-stable
Console_Color-stable
Console_Getopt-stable
Console_Table-stable
Crypt_HMAC-stable
etc …

For me it’s just a nice way to backup the pear module list, or copy it to a file and then install the pear modules on another box.

2 Comments

Filed under Programming

truth and trivia

At work today, I randomly commented to my friend, Jason, “It’s interesting to note what drops out of your life when your time gets filled with important things.” That seems to be the trend my schedule is taking lately. Not to say my schedule is a paragon of efficiency and order. I just had pudding for dinner. But I have noticed that as my surplus of resources diminishes, things change. And it’s curious to note what gets dropped.

It makes me think of this talk I heard some time:

“When compared to eternal verities, the questions of daily living are really rather trivial. What shall we have for dinner? Is there a good movie playing tonight? Have you seen the television log? Where shall we go on Saturday? These questions pale into insignificance when times of crisis arise, when loved ones are wounded, when pain enters the house of good health, or when life’s candle dims and darkness threatens. Then truth and trivia are soon separated. The soul of man reaches heavenward, seeking a divine response to life’s greatest questions: Where did we come from? Why are we here? Where do we go after we leave this life? Answers to these questions are not discovered within the covers of academia’s textbooks, by dialing information, in tossing a coin, or through random selection of multiple-choice responses. These questions transcend mortality. They embrace eternity.”

Leave a comment

Filed under Religion, Uncategorized