You are not logged in.

#1 2015-03-02 23:55:27

johnx
Member
Registered: 2014-07-06
Posts: 4

[SOLVED] Redownload Pacnew Files

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

#2 2015-03-02 23:59:59

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED] Redownload Pacnew Files

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

#3 2015-03-03 00:18:09

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Redownload Pacnew Files

"pacman -S filesystem" would probably work.

Offline

#4 2015-03-03 00:22:55

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED] Redownload Pacnew Files

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

#5 2015-03-03 00:25:45

weirddan455
Member
Registered: 2012-04-15
Posts: 209

Re: [SOLVED] Redownload Pacnew Files

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

lucke wrote:

"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

#6 2015-03-03 00:38:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED] Redownload Pacnew Files

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 packagesZsh and other configs

Offline

#7 2015-03-03 00:38:51

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED] Redownload Pacnew Files

weirddan455 wrote:

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

#8 2015-03-03 00:41:40

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [SOLVED] Redownload Pacnew Files

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...


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#9 2015-03-03 00:49:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED] Redownload Pacnew Files

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 packagesZsh and other configs

Offline

#10 2015-03-03 01:01:39

weirddan455
Member
Registered: 2012-04-15
Posts: 209

Re: [SOLVED] Redownload Pacnew Files

nullified wrote:
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

#11 2015-03-03 01:32:34

johnx
Member
Registered: 2014-07-06
Posts: 4

Re: [SOLVED] Redownload Pacnew Files

weirddan455 wrote:
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

#12 2015-03-03 21:18:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Redownload Pacnew Files

Offline

Board footer

Powered by FluxBB