Andrew Beaton :: FAQ

RPM scriptlet failed

by Andrew on Dec.17, 2009, under Linux

I came across a problem when trying to remove an RPM using `rpm -e` which caused this following error to come up.

# rpm -e PACKAGE 
find: ....... No such file or directory
error: %preun(PACKAGE) scriptlet failed, exit status 1

To fix this, I added `—noscripts` to the end of the line and it removed without a problem.

:, ,

Leave a Comment

Read MP3 ID3 Tags in Perl

by Andrew on Dec.03, 2009, under Linux, Perl, Programming

The package I use for simple tag reading is MP3::Tag, available on CPAN with more information here.

The following example shows how easy it is to retrieve tags from an MP3 file.

use MP3::Tag;
 
my $file = MP3::Tag->new($filename);
 
my ($title, $track, $artist, $album, $comment, $year, $genre) = $file->autoinfo();
 
print "Title: [$title]\n";
print "Artist: [$artist]\n";
print "Album: [$album]\n";
print "Track: [$track]\n";
print "Year: [$year]\n";
print "Genre: [$genre]\n";
print "Comment: [$comment]\n\n";
:, , , ,

Leave a Comment

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

 

Archives

All entries, chronologically...