rebase

Meta

AUR:23877
Arch Forum Thread:65313
Binary Package:xyne-any/rebase-4.0-1-any.pkg.tar.gz
Manpage:manpages/rebase
PKGBUILD:pkgbuilds/rebase
Repos:[xyne-any]
Source Package:rebase-4.0.tar.gz
Taurball:rebase.tar.gz
Version:4.0

About

Rebase is pacman-database synchronization tool. Instead of overwriting all of the database files, it selectively extracts and removes them to avoid unnecessary disk IO. It also displays information about package changes in the database (additions, removals, upgrades). Please read the man page for more information.

Cron and Rebase

Here's a simple script that you can drop in /etc/cron.hourly to have your database automatically updated every hour.

#!/bin/bash
/usr/bin/rebase --silent >/dev/null 2>&1

Redirecting to /dev/null should be unnecessary with the "--silent" option, but it doesn't hurt. If you'd like to log the output to /var/log/rebase.log, you could use this instead:

#!/bin/bash
/usr/bin/rebase --silent --log /var/log/rebase.log >/dev/null 2>&1

The advantage of using this instead of "pacman -Sy" is that this will only overwrite files when necessary, instead of purging and dumping every file in the sync database each time the cronjob is run.

/home/projects/rebase