Repository Moved thanks to Apache and 301 Redirections

Since the creation of my personal Mandriva repository (10 months ago) the number of my RPMs did not cease to increase. Currently all RPMs and SRPMs from 2006.0 and 2007.0 take 383MiB of space.

So I decided to move the http://kev.coolcavemen.com/static/repository folder to http://kevin.deldycke.free.fr/repository, which is a 10GiB (yes, ten gibibyte, this is not a typo) free web space offered by Free, my ISP.

To do this smoothly, I’ve just set up a generic 301 redirection thanks to Apache. This is the only line I added to my root .htaccess file to enable this:

Redirect permanent /static/repository http://kevin.deldycke.free.fr/repository

This move will normally be completely silent for you. So please, let me now if something bad happend while you play with my repository.

RPM, Urpmi & Yum commands

RPM

  • List all installed packages:
    rpm -qa
    
  • Get the list of all installed packages and their architecture:
    rpm -qa --queryformat "%-40{NAME} %-8{ARCH}\n"
    
  • Same as above, but show i586 packages only:
    rpm -qa --queryformat "%-40{NAME} %-8{ARCH}\n" | grep i586
    
  • 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
    

Urpmi

  • 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
    
  • Generate urpmi repository index and metadata of the current folder:
    genhdlist ./
    
  • APT/URPMI commands list

Yum

  • Install a new package:
    yum install subversion
    
  • Search for packages containing the x11 string:
    yum search x11
    
  • Get the list of packages that provide Python’s Subversion bindings:
    yum provides "*/svn/__init__.py"
    
  • Update repository index:
    yum update
    
  • Clear all caches (sometimes required to force a repository index update):
    yum clean all
    
  • Generate Yum repository index and metadata of the current folder:
    createrepo -v ./
    

Amarok 1.4.4 for Mandriva 2007: MusicBrainz Repaired !

amarok-144-with-musicbrainz1 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.

Diva for Mandriva 2007: latest SVN revision.

diva-002-trunk1 I’ve compiled a new RPM of Diva for Mandriva 2007. This RPM is the cutting-edge version of Diva based on the latest SVN revision of the project (r315). You can find it in my repository.

Diva is based on gstreamer, so please install all gstreamer0.10-* RPMs first. Because this version is still an alpha and a developper version, it is subject of numerous bugs and instability. So please, don’t report me bugs, I’m not a Diva developper !

Amarok 1.4.4 for Mandriva 2007

amarok-1-4-41 Here is the ultimate version of Amarok ! The version 1.4.4 of Amarok was released today, and I’ve added it to my brand new Mandriva 2007 repository. As a bonus, this RPM support three database system to store audio collections: SQLite (default), MySQL and Postgresql.

I’ve noticed that MusicBrainz features are broken in the default Amarok 1.4.3 which come with Mandriva 2007. Unfortunately, those features are still broken in this release. Sorry.