From b9e07877c13bc39bc8517210632c6d55c828f395 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Sat, 13 Sep 2003 15:04:14 +0000 Subject: - add note about where urpmi completion now lives - add note about why rpm -q completion can be slow --- README | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 1821111b..94463355 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -$Id: README,v 1.20 2003/08/18 09:38:20 ianmacd Exp $ +$Id: README,v 1.21 2003/09/13 17:04:14 ianmacd Exp $ INSTALLATION @@ -235,6 +235,32 @@ A. This is actually a 'feature' of bash. bash recognises a colon as Unfortunately, there's no way to turn this off. The only thing you can do is escape the colons with a backslash. +Q. Where did urpmi completion go? + +A. Guillaume Rousse now maintains it separately as + part of the urpmi RPM package. + +Q. Why is rpm completion so slow with -q? + +A. Probably because the database is being queried every time and this uses a + lot of memory. + + You can make this faster by pregenerating the list of installed packages on + the system. Make sure you have a readable file called /var/log/rpmpkgs. + It's generated by /etc/cron.daily/rpm on modern Red Hat and Mandrake + Linux systems. + + If you don't have such a cron job, make one: + + #!/bin/sh + + rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}.rpm\n' 2>&1 \ + | sort > /var/log/rpmpkgs + + rpm completion will use this flat text file instead of the RPM database, + unless it detects that the database has changed since the file was created, + in which case it will still use the database to ensure accuracy. + Q. This code is rubbish/not bad/pretty good/the best thing since sliced bread. How can I show my appreciation? -- cgit v1.2.1