You are not logged in.
Pages: 1
After an update I mistakenly deleted the group and gshadow pacnew files. How can I download them back?
Thanks in advance.
Last edited by johnx (2015-03-03 01:35:08)
Offline
You'll find the group and gshadow files here.
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
"pacman -S filesystem" would probably work.
Offline
I was going to suggest that but I wasn't sure if reinstalling will generate new pacnews. It doesn't on my system, but I've taken care of them with pacdiff. If they are deleted manually, they can be regenerated by reinstalling? Let us know if that works johnx. I'm curious.
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
You'll find the group and gshadow files here.
You just linked the package which I would recommend getting instead from /var/cache/pacman/pkg because the packages in the cache have already had their GPG signatures verified by Pacman (and because there's no reason to redownload it.) You'll have to manually extract it somewhere and then pull out the group and gshadow files. Or if you want to copy/paste it from online here's a more helpful link: https://projects.archlinux.org/svntogit … ore-x86_64
"pacman -S filesystem" would probably work.
It doesn't. I just checked. Looks like Pacman only creates the pacnew files on upgrade, not reinstall.
Offline
If I'm not mistaken, these files are modified by packages as you install them. The base file is indeed included in filesystem, but you will likely be missing entries.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You just linked the package which I would recommend getting instead from /var/cache/pacman/pkg
Good point, I should've thought about it a bit longer!
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
The base file is indeed included in filesystem, but you will likely be missing entries.
Wouldn't OP just be able to rename the files included in filesystem to gshadow.pacnew and group.pacnew and then run pacdiff? It would be another story if the group or gshadow files themselves were accidentally deleted...
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
I think something creates backup files for these that end in a hyphen...
Last edited by graysky (2015-03-03 00:49:36)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
graysky wrote:The base file is indeed included in filesystem, but you will likely be missing entries.
Wouldn't OP just be able to rename the files included in filesystem to gshadow.pacnew and group.pacnew and then run pacdiff? It would be another story if the group or gshadow files themselves were accidentally deleted...
Yes. You'd want to manually merge the two files, not just blindy replace them. This topic reminded me to look at those pacnew files and when I diff'd them the only difference was they added the group "proc" to the base file but that group had already been added by something else to my /etc/group and /etc/gshadow so I just deleted the pacnew files.
Offline
nullified wrote:You'll find the group and gshadow files here.
You just linked the package which I would recommend getting instead from /var/cache/pacman/pkg because the packages in the cache have already had their GPG signatures verified by Pacman (and because there's no reason to redownload it.) You'll have to manually extract it somewhere and then pull out the group and gshadow files. Or if you want to copy/paste it from online here's a more helpful link: https://projects.archlinux.org/svntogit … ore-x86_64
That did it!
Thank you all for your responses.
Offline
See also pkg-extract_original from http://xyne.archlinux.ca/projects/pkg_scripts/
https://aur.archlinux.org/packages/pkg_scripts/
Offline
Pages: 1