summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorianmacd <>2003-09-13 15:04:14 +0000
committerianmacd <>2003-09-13 15:04:14 +0000
commitb9e07877c13bc39bc8517210632c6d55c828f395 (patch)
tree08ec39825d5b4b15e154b20afe035f0ed80dd79d /README
parent5d7bc025348fd4b507780d1ae4e7e355c7edee52 (diff)
downloadbash-completion-b9e07877c13bc39bc8517210632c6d55c828f395.tar.gz
- add note about where urpmi completion now lives
- add note about why rpm -q completion can be slow
Diffstat (limited to 'README')
-rw-r--r--README28
1 files changed, 27 insertions, 1 deletions
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 <rousse@ccr.jussieu.fr> 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?