You are not logged in.
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)
[site] | [dotfiles] | あたしたち、人間じゃないの?
Offline
bacman
Online
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.
@Allan
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.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
@ Xyne, I was thinking the same thing!
But, what happens if you have deleted a .pacnew, and modified the configuration files?
Offline
@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:
https://www.archlinux.org/packages/extra/x86_64/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
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
@Allan
Is that by design?
Sure... lets say we designed it!
I'm sure improvements could be made and patches will be accepted.
Online