hey everyone! a while ago, i accidentally pacman -Scc rather than just -Sc because i was being dumb and not paying attention, and now it turns out that i actually need one of those packages i deleted. is it possible to re-make a currently installed package from the the files scattered around my system?
Last edited by shmibs (2013-09-16 15:19:45)
Note that bacman will included modified configuration files in the package (those specified in the backup array, i.e. the ones that generate .pacnew files). This can be a problem if the configuration file contains sensitive data (e.g. security software) or hardware-specific data.
Is that by design? If not, the ".PKGINFO stuff" could be moved above the file copying and used to populate an array with the backup files. That could then be used to check for matching .pacnew files when copying. It could even be made optional.
@OP - Not what you asked, but be aware that you can look for the package and build an older version yourself. Example for [extra]/vim:
*Click 'view changes'
*Let's say I want to build package version 7.3.515-1 for some reason
*Click 'upgpkg: vim 7.3.515-1'
*Click the link next to 'Download' to grab the tarball
*Extract it and go into '/path/to/archive/trunk'
*There you will find all the needed files to build said package