Innhold

A small trick to update the locate – database in OpenBSD

Installed OpenBSD 4.2 for the first time today, an exiting experience when you are sitting alone a night looking for some fun.. Anyhow, the installation went as smooth as installation of Ubuntu 7.10 – so smooth that you sit staring at the screen afterwards – looking for whatever the installer have done to your computer. The first thing was how to get a overview of what programs are installed. This is where the fun started, with corrupt or missing updatedb. To fix updatedb, there was two things done:

  1. Make the .profile – file use the following:
    PKG_PATH=ftp://ftp.uninett.no/pub/OpenBSD/4.2/packages/`machine -a`/ export PKG_PATH
  2. Update the database with the command pkg_mklocatedb

It is as simple as that, forget the long and tedious command lines – those two snippets did the trick..

:-)

Ikke mulig å kommentere.