[pacman-dev] feature request: create .tar.gz package from an installed one
Hi! In my opinion one of the best thinks in pacman that unlike many other package managers user can undo lots of thinks (see -R group after -S group, -Rs after -S ...). However, user cannot undo a package upgrade, because most sync servers doesn't store old packages. So I think that it would be very useful, if there would be a pacman or makepkg command to create a package from an installed one (or is this implemented?). We could(?) do this from the local db and the installed files. Of course this wouldn't be a "distro" package, because config files can change etc. but this is even better for backup/undo. You may say, that this is totally useless, because if a package is installed then there must exist a proper .tar.gz file somewhere. -but package can be installed from aur and user may deleted the "binary" file -if you move to a place with no network, you can easily create "backup" packages before -R (and reinstall) or you can give this package to your Archer friend -slightly reduces needless Arch-server using -it can be easily implemented (IMHO) Bye, ngaba ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Sat, Jul 14, 2007 at 10:25:27PM +0200, ngaba@petra.hos.u-szeged.hu wrote:
Hi! In my opinion one of the best thinks in pacman that unlike many other package managers user can undo lots of thinks (see -R group after -S group, -Rs after -S ...). However, user cannot undo a package upgrade, because most sync servers doesn't store old packages. So I think that it would be very useful, if there would be a pacman or makepkg command to create a package from an installed one (or is this implemented?). We could(?) do this from the local db and the installed files. Of course this wouldn't be a "distro" package, because config files can change etc. but this is even better for backup/undo. You may say, that this is totally useless, because if a package is installed then there must exist a proper .tar.gz file somewhere.
lol, indeed, that's exactly what I want to say :)
On 7/14/07, Xavier <shiningxc@gmail.com> wrote:
On Sat, Jul 14, 2007 at 10:25:27PM +0200, ngaba@petra.hos.u-szeged.hu wrote:
Hi! In my opinion one of the best thinks in pacman that unlike many other package managers user can undo lots of thinks (see -R group after -S group, -Rs after -S ...). However, user cannot undo a package upgrade, because most sync servers doesn't store old packages. So I think that it would be very useful, if there would be a pacman or makepkg command to create a package from an installed one (or is this implemented?). We could(?) do this from the local db and the installed files. Of course this wouldn't be a "distro" package, because config files can change etc. but this is even better for backup/undo. You may say, that this is totally useless, because if a package is installed then there must exist a proper .tar.gz file somewhere.
lol, indeed, that's exactly what I want to say :)
Check the contrib directory. I'm pretty sure re-pacman does what you want.
On Sat, Jul 14, 2007 at 10:16:47PM -0500, Aaron Griffin wrote:
On 7/14/07, Xavier <shiningxc@gmail.com> wrote:
On Sat, Jul 14, 2007 at 10:25:27PM +0200, ngaba@petra.hos.u-szeged.hu wrote:
Hi! In my opinion one of the best thinks in pacman that unlike many other package managers user can undo lots of thinks (see -R group after -S group, -Rs after -S ...). However, user cannot undo a package upgrade, because most sync servers doesn't store old packages. So I think that it would be very useful, if there would be a pacman or makepkg command to create a package from an installed one (or is this implemented?). We could(?) do this from the local db and the installed files. Of course this wouldn't be a "distro" package, because config files can change etc. but this is even better for backup/undo. You may say, that this is totally useless, because if a package is installed then there must exist a proper .tar.gz file somewhere.
lol, indeed, that's exactly what I want to say :)
Check the contrib directory. I'm pretty sure re-pacman does what you want.
Oh, just a small external sh script for doing that job, that's perfect. Nagy was apparently right when saying it would be easy to implement, and it might be useful in some cases indeed (I just never had a need for it ;) ).
Check the contrib directory. I'm pretty sure re-pacman does what you want. Thanks.
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Check the contrib directory. I'm pretty sure re-pacman does what you want. Well, it works with English locale only, so an "undef LC_ALL" or similar in the beginning of the script might help. Bye, ngaba
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On 7/17/07, ngaba@petra.hos.u-szeged.hu <ngaba@petra.hos.u-szeged.hu> wrote:
Check the contrib directory. I'm pretty sure re-pacman does what you want. Well, it works with English locale only, so an "undef LC_ALL" or similar in the beginning of the script might help. Bye, ngaba
It's in GIT- patches always welcome. Since Aaron or I don't use many other locales, it is best for someone else to make and test these changes. -Dan
Hi! I'm not a master of shell scripting, but this simple patch works for me. Bye, ngaba
participants (5)
-
Aaron Griffin
-
Dan McGee
-
Nagy Gabor
-
ngaba@petra.hos.u-szeged.hu
-
Xavier