Is there any proper guide on how to correctly merge .pacnew files?

I believe I’m much better with Linux/technology inn general than most people around me (Czechia btw), but I have no idea how to proceed. Do I have to, like, learn the inner workings of the programs, or what?

If I remember correctly, I saw, either in terminal, or somewhere here on forum, that the devs of those programs make some guides for merging somewhere else, but idk where and if I remember it correctly.

Also, could it maybe be a good idea to train some modified AI on work/articles/manuals of creators of .pacman, .pacnew, and all the packages/programs, so it could with like 0.01% of mistakes merge those files for normal people that have no idea what to do? Asking as someone who knows only very little about inner workings of AI soo idk someone educated please answer (and don’t kill me for mentioning AI).

Please do not post here in the forum, like in chat forums.
As long as no one has responded to your post, you can edit your post.

Make sure you have done the following before you post:

Please, use forum search, we talk often abut this.

3 Likes

I did run merge over the Garuda-Rani Application and it meld for me i did had nothing to do manually yet. There a so many Topics here about meld so you can read about it.

Creating pre-merge snapshot...
[sudo] password for duke:     
Created snapshot 342

Merging /etc/pacman.d/mirrorlist.pacnew ...
Skipping /etc/pacman.d/mirrorlist.pacnew, in skip list. (Deleting .pacnew file.)

All .pacnew files processed.
Press enter to finish.

Hey, it’s safe to accept the new pacnew file here. See how the deny = 10 from the bottom simply moves up further? The files are otherwise identical, except for the comments.

2 Likes

Soo how did you merge it?

https://imgur.com/a/jrCgLb6

I see this

Thanks, I understand how to merge it using arrows on keyboard, but, emm… the .conf is the old one and .pacnew is the new one, right? Soo I should hit arrow right to apply the .pacnew onto the .conf? Just making sure.

Sorry, well I tried searching but found no proper guide on how to decide what to accept/deny. Maybe I haven’t searched enough but I’d be glad for some proper comprehensive manual that is intuitively written and easy to search in. Or do I just have to guess what to keep? Or learn programming properly? (My HTML and CSS is probably useless here…).

Sorry for not editing the post but I felt like it is kinda a separate issue, but I still wanted to mention the AI idea here because it is about Meld - .pacnew mering. How should I do it in the future/change now? Just make a new post?

I think you’re approaching the merging of .pacnew files incorrectly, and it belies a fundamental misunderstanding of what these files are and what you, as the end-user - and effectively system administrator, need to do to ensure a safe, secure, and optimal system experience.

First, I think it’s important to understand that when .pacnew files are created, it’s because usually the package either has new configuration features, or there’s a change in how settings are processed, or something similar. The .pacnew is basically a suggestion, or updated configuration settings, from the package maintainers on how to update the settings and configuration options for the specific package.

Now, in cases where it’s a brand new machine, it’s probably safe to automatically just overwrite the configuration, however, in a system that’s already running, it’s important to not wholesale overwrite the configuration file since you may have settings that are specific to your system and overwriting the file without reviewing can very likely break your system in a way that you do not expect.

Now, while the Garuda team did a great job implementing certain hooks to aid in the merge process, that’s specific to Garuda configuration needs only - not your end-user configuration changes.

A user must review this properly and decide what changes to implement. Again to the credit of the Garuda team, they have a far more elegant and useful method by which you can review the changes and decide on how to synchronize the two files so that they’re identical, which means any of your settings are preserved, and any new changes coming from the .pacnew file are incorporated into your existing settings file.

When merging these files, Garuda Rani automatically loads meld, which is a GUI program which highlights differences between any two files. In cases where lines are identified in blue, it means that both files have similar lines, but there’s a conflict between them. In those cases, decide which of the two (new, or original file) should persist and overwrite the one you wish to no longer use. In cases where the identified change is green, it means this is a new line that doesn’t exist in the original file and you can decide if you want it included or not.

I hope this, at least, helps demystify why this is important, and what the program is showing you to help you make informed decisions.

Of course, if there’s a setting you do not understand, Google is an excellent tool to help uncover more information about it. I will also caution you and future readers to, at least at this time of writing, avoid any suggestions or explanations by any AI as these answers cannot be fully trusted unless you already know what you’re doing, which makes the AI answer useless. Lastly, you’re always welcome to post on the forum here and there are many active folks on the forums who are eager to help.

Good luck with your merging!

3 Likes

Would recommend https://www.startpage.com over G :eyes:gles because of privacy.

LOL I was using “Google” as a verb for “search”. Use whatever your heart pleases, that’s your business LOL

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.