text: replace is now global
apt: make installed actually work
did_update: fix logic, write tests