Monthly Archive for November, 2006

Usefull Commands: RPM

  • List all installed packages:

    rpm -qa

  • List all available packages with name containing python:

    urpmq --fuzzy python

  • Find which RPM contain the file named dummy:

    urpmf dummy

  • Get informations about the dummy RPM:

    urpmq -i dummy

  • Get the list of all RPMs that require python-psyco package:

    urpmf --requires python-psyco

  • Get the list of all RPMs that provide python-psyco package:

    urpmf --provides python-psyco

  • I use this command in a cron entry to update automatically and regularly my Mandriva:

    /usr/sbin/urpmi.update -a && /usr/sbin/urpmi --update --auto --auto-select

  • Downgrade a package to an old version:

    wget ftp://ftp.repository.org/mandrakelinux/official/10.0/package-1.0-1mdk.i586.rpm
    rpm -Uvh --oldpackage package-1.0-1mdk.i586.rpm

  • Unpack/Deflate/Extract a RPM without installing it:

    rpm2cpio dummy.src.rpm | cpio -id

  • Evaluate %mkrel 3 rpm macro:

    rpm --eval '%mkrel 3'

  • Force removal of a package that has problems with embedded “pre-” and/or “post-” scripts:

    rpm -e --noscripts packagename

  • APT/URPMI commands list

Amarok 1.4.4 for Mandriva 2007: MusicBrainz Repaired !

amarok-144-with-musicbrainz.png

I’m happy to announce you that the latest version of Amarok for Mandriva 2007 now feature a fully functionnal MusicBrainz ! Look at the screenshot for evidences.

This build, named amarok-1.4.4-3, is exactly the same as previous one (i.e. with SQLite, MySQL and Postgresql support). Don’t forget to update the libtunepimp package from my repository and use the 5.0 version.

Wordpress to e107 v0.6: Better Content Rendering and Extended News support

e107-to-wordpres-06.png

Here is the version 0.6 of my tool to import e107 content in Wordpress. Comparing to v0.5, this 6th alpha version render content as it is rendered in e107 thanks to the use of user’s website preferences. This release also handle news extended part nicely (look at screenshot), and is built to work with the latest e107 v0.7.6 and Wordpress 2.0.5.

Usefull Commands: i18n / l10n

  • Wipe out a .po file and keep only translated messages:

    msgattrib --translated -o cleaned.po messy.po

  • Delete duplicate messages in a .po file:

    msguniq -o no_duplicate.po duplicate_content.po

  • Show differences between two .po files (thanks to jérome):

    msgcat -u file1.po file2.po > diff.po

Wordpress to e107 v0.5: Static Pages Import added

e107-to-wordpress-v05.pngThe 5th alpha version of my script to import e107 data to Wordpress is out ! This version is now able to import static pages as is.