I came across an interesting discussion at LQ, about extracting a package from its installation and recovering the installable package. Useful if you want to uninstall something, but are not sure if you may need it in the future.
$ su - removepkg -copy leafpad-0.8.18.1-x86_64-1_SBo cd /var/log/setup/tmp/preserved_packages/leafpad-0.8.18.1-x86_64-1_SBo/ mkdir -p install grep '^leafpad: ' /var/log/packages/leafpad-0.8.18.1-x86_64-1_SBo > install/slack-desc makepkg -l n -c n /tmp/leafpad-0.8.18.1-x86_64-1_SBo.tgz
The package is in
/tmp. You may want to clean the contents of
/var/log/setup/tmp/preserved_packages/ after that.