Tool for merging pacnew files ??

Hi all,
Is there a program available that are able to merge a .pacnew file with the existing files, instead of doing this manually ??
Maybe vim can do this but I am not sure ??
It would be nice to do this quickly to save time !!
Last edited by niller (2008-03-11 12:02:08)

niller wrote:Maybe vim can do this but I am not sure ??
Yup, try this from a terminal:
$ vimdiff /etc/conf /etc/conf.pacnew
Last edited by tom5760 (2008-03-11 13:53:21)

Similar Messages

  • Pacmerge -- merge .pacnew files

    pacmerge is a simple (80-line) program to interactively merge .pacnew files with sdiff.
    https://aur.archlinux.org/packages.php?ID=52485
    Why another such program? For two main reasons:
    1. Most others use the wronganother program to merge (e.g. vimdiff, kdiff (eww), &c.), which is difficult to change
    2. Haskell is nicer than bash
    Last edited by strake (2011-11-26 18:27:40)

    karol wrote:
    doublerebel wrote:I don't care for the obtuse UI of vimdiff
    Use can use regular diff if you want.
    Or e.g. meld.
    I am aware of the other suggested options, I'm not as noob as my post count appears.  Diff does not merge files.  Copy and paste between files in a terminal while referencing the diff is not a simple task.  Meld is GUI-only.
    There is definitely a place for a simple CLI .pacnew interactive merge tool. Diffpac/pacdiffviewer is close, but without documentation and also uses vimdiff -- although at least Diffpac has almost no dependencies.
    Most of the .pacnew configuration updates are trivial (thanks to Arch's clean structure and upgrade process), and therefore merging should be trivial as well.  .pacnew merging is a bump in Arch's otherwise smooth rolling upgrades.

  • (SOLVED) Trouble merging .pacnew files with meld

    Dear Archers
    Unable to merge .pacnew files, following the example on ArchWiki. Only, the difference between the two files shown
    [root@KRISHNA san2ban]# #!/bin/bash
    [root@KRISHNA san2ban]# # pacnew-update - merge *.pacnew files with original configurations with meld
    [root@KRISHNA san2ban]#
    [root@KRISHNA san2ban]# pacnew=$(find /etc -type f -name "*.pacnew")
    [root@KRISHNA san2ban]#
    [root@KRISHNA san2ban]# for config in $pacnew; do
    > # Merge with meld
    > gksu meld ${config%\.*} $config &
    > wait
    > done
    [1] 1578
    GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: The connection is closed)
    GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: The connection is closed)
    Also, on the Archwiki, we are advised to change 'kdesu' to 'gksudo' for GNOME, but I think it should be gksu
    Last edited by San2ban (2011-08-18 14:07:53)

    San2ban wrote:
    Dear Karol
    Thanks. yes, manual intervention is needed
    Wonder how it will be without you guy's guiding us
    You bet your ass, manual intervention is needed. If you try to blindly just merge *.pacnew with original files, it might lead to an unbootable system. Especially when you get pacnew files for /etc/group and /etc/inittab

  • A tool for merging java code

    Hi,
    I m in need of a tool for merging java code.Sould be a free ware.
    Please suggest me.

    Look at this link : http://www.prescient.com/prod02.htm
    Is this what you mean?
    There is a trial version available.

  • What are the best tools for converting .shg files to HTML image maps?

    After trying several different ways to import our WinHelp
    project into RH HTML, I'm left with recreating the project in HTML.
    There are over 200 .shg files. What's the best tool for converting
    them? Is there a free program that converts them? Or is there a
    better way?
    Lacona

    Yes, I have not been able to import the .hlp file, which was
    my last posted question/issue. I have tried creating a Microsoft
    HTML layout in RH4 Word; it begins to compile and, somewhere in the
    process, just freezes. I've tried importing the .hlp file into RH
    HTML; same result. I've tried creating a new HTML project with the
    .hlp file; same result. If I could import the file, it'd be great.
    Otherwise, I'll need to recreate the entire project, which brings
    me to converting the .shg files. Any ideas?

  • Tool for generating properties files

    Hello Experties,
    I am wondering is there a tool or program for SAP to get SAP fields screen names from SAP backend for diffrent languages and generat the properties files?
    for java uwl or webdynpro they are all the same properties file.
    thanks

    WebDynpro i18n is done by .xlf files. Its an standard (http://en.wikipedia.org/wiki/Xliff) and there are some OSS editors available, just google xlf editor.Or check this one: http://okapi.opentag.com/applications.html#rainbow
    The Idea is, that you give your xlf files to the translator and safe the results with a suffix representing the language (_de.xlf for german).
    Hope this helps.

  • Feature request: Better tool for organizing image files

    Hi all,
    I'm considering rearranging the directory structure of my photo library completely (for a number of reasons: new cameras, a new variety of tools on new PCs).
    I would like to reorganize my photos into a year\month directory structure and that will basically spread all my image files into new locations.
    I have searched quite a bit and the advices I have seen don't seem to work:
    (1) Moving the files outside LR is fairly easy (using exiftool) but I cannot make LR link to the files automatically in their new locations. And doing it manually with "Locate file" or "Find missing folder" is not practical due to the large number of files and large number of new locations.
    (2) Moving the files with LR tools is also not practical: Manually dragging the photos into the new directory structure will take forever, and the only automatic rename feature I know of is "Rename Files ..." cannot move the photos into new directories (it can, however, assign names from the file dates and other metadata).
    Now my feature suggestion: Either make it possible for LR to automatically relink files that have been scattered into a new directory structure or - better yet - make it possible for LR to perform such auto-organize operations.
    My mp3 manager (MediaMonkey) is a good example to follow: It can organize (move or copy) any number of music files into any directory structure built from the audio file's metadata (such as my standard audio directory structure: Music\<Artist>\<Album>\<Track#:2> - <Title>).
    Interestingly, the LR "Rename file" function can almost do it already; it just cannot move the file into a new directory.
    Or can this be done in a way I haven't discovered?

    Sorry if I might be stating the obvious (but at least I was such a *dummy* once that I needed this explicitely):
    In order to move the sequence of images per drag&drop in grid view you need to
    Put the sort order in the bottom toolbar to "user order" (toggle visibility with letter T if not displayed)
    Grab an image from within its thumbnail, not from its border-cell.
    When you move around you see a vertical black thick line wandering in between images where you would be able to drop it
    Put the images first into a collection in case they should be spread across multiple folders.
    This is the reason why most often from a filter result you cannot re-arrange.
    Still sometimes it does not work as I want, but can *be persuaded*, i.e. I repeat the same trial after first moving to another collection, then return back. I can't nail it down sufficiently to file a bug.
    For an automated sorting according to filename (chosse that setting finally in toolbar) you could rename the photos in place, without exporting & re-importing. Just select them and hit <F2> to bring up the renaming dialog like possible during import.
    +1 vote from me, as I am neither satisfied with the responsiveness of moving folders within LR e.g. from laptop hard disk to NAS.
    Apart from that I try not to build much on my folder structure, just break them into manageable quantities and have a quick "diary-overview" by using naming convention "YYYY-MM-DD description of event" (pictures of up to 4 cameras go inside, unique filenames for Canons achieved by renaming during import). For all the rest I prefer to build (smart) collections.

  • Tools for generating java files

    Hello!
    I need a tool which can generate .java files (just like rmic generates _Stub.java files). 
    I know Velocity but i'm looking for something better. Can you help me?
    Kuba Kr�likowski

    rmic does not generate Stub and Skel .java
    files, but it generates .class files.
    (just a side-note)RMIC always produce .java files at first - you can keep them using -keep or -keepgenerated option!
    Kuba

  • I need a good program for merging MP4 files on Mac, i need a program that wont mess up the sound?

    Hey, pal. If you are using a Mac, I think aprofessional MP4 video joiner for Mac would be the best choice, which cancombine MP4 Video and output to iPod (also to Quicktime, iMovie, iPhone...).
    It was recommended by lots of famous mac-relatedsites, such as macworld.com, macnn.com, maclife.com, etc. You will never knowhow powerful it is. It’s the best all-in-one Mac converter I have used ever.
    Glad to share. And you can find the truthon  official website:http://imp4converter.com/mp4joiner_mac.html

    ??? Sorry, my knoledge does not go that far! By bouncing you mean drop into iTunes? Remember some of the files are not splitted into tracks...Thanks!

  • Tools for generating WSDL file

    I have created one Java Web Service in Apache Soap. Now I want to create the WSDL file so that my clients will
    come to know what is my Web Service about. But I am not able to find any tool which will automatically generate
    the WSDL file from the Java Class since my Web Service is purely written in Java. I came to know about GLUE but
    was not able to find the link from where I could download it. Can anybody help me to find such tools?

    I dont want to use Axis. Even Glue has the same command to generate the WSDL file from Java. Do you have any
    idea from where I could download Glue?

  • Triple Combo GUI tool for CUCM trace files analysis

    Hi folks,
    the link to the Triple Combo GUI tool to analyze CUCM trace files appears to be broken:
    www.employees.org/~tiryaki/tc
    any idea where the tool is gone or with whaht was is replaced?
    thanks
    best wishes
    Lucio

    Hi Lucio,
    you can try TranslatorX.
    http://translatorx.cisco.com/index.html
    //Suresh
    Please rate all the useful posts.

  • Pacnew_scripts: scripts to merge some .pacnew files after an upgrade

    info page: http://xyne.archlinux.ca/info/pacnew_scripts
    I was updating my old system which doesn't get turned on that often and had to deal with about 15 pacnew files. Most only required a simple "mv /path/to/file{.pacnew,}" but some required merging. I found a script that I had written a while ago to merge /etc/group.pacnew, made some changes, made a copy which can handle gshadow, then wrote scripts to handle the pacman mirrorlist and locale.gen.
    Thus the pacnew_scripts package was born.
    infopage wrote:
    This package contains scripts which can help merge .pacnew files after a pacman upgrade. These scripts print their results to STDOUT and thus do NOT make any changes to the files. It is up to the user to inspect the output and, if satisfied, redirect it to the original file and then delete the .pacnew file.
    The scripts accept "-c" and "--compare" as options and will display relevant information about differences between the files. For group and gshadow, this will display 3 columns to compare the original, .pacnew and merged files and will use colors to highlight changes. For the mirrorlist and locale.gen, it will check that all settings in the original file are available in the new file and print out a list of any that aren't (e.g. if one of your current mirrors has been dropped from the mirrorlist, it will be listed in the output).
    I'll probably add scripts as I go. I might also merge the scripts to avoid some redundancy but I decided to keep them simple for now. merge_pacnew_locale_gen is actually very generic and works on the mirrorlist and probably other files as well. If you find any, let me know.
    Last edited by Xyne (2010-03-21 13:03:34)

    beroal wrote:
    I'm really astonished that you interpreted my post as an advertisement of "diffpac".
    Xyne wrote:Have you even tried these scripts and compared them to the alternatives that you've proposed? … you can at least post comments based on an informed comparison.
    I expected such a comparison from you. If "pacnew_scripts" merges files automatically, what algorithm does it use?
    I didn't interpret it as advertisement. It seemed that you read the basic description of what this does and concluded that something else already does the same thing. Following on the tail of the previous posts I felt that your post was somewhat rude because it implies that this is useless. Obviously that is relative, but even so I see no point of posting in this thread to express it, even indirectly.
    I admit that I may have interpreted your post the wrong way and if I did then I apologize, but even then I don't understand why you felt the need to post what you did in a contribution thread.
    As for algorithms, there are different scripts and they use different algorithms. The group and gshadow scripts create hash representations of the groups in the original and .pacnew files. Groups which only exist in one of the files pass through untouched. Groups which exist in both have their members combined, which usually means that the original simply passes through. Using the "--compare" option, three aligned columns are displayed which clearly shows existing groups, new groups and the results of merging, with colors used to highlight all changes.
    The mirrorlist script creates a list of selected servers in the current mirrorlist and generates a new mirrorlist from the .pacnew mirrorlist with all servers in the generated list uncommented, if they exist. Passing the "--compare" option will simply check if all the currently selected mirrors still exist in the new mirrorlist (they might not if they're dropped) and prints out a list of any that aren't.
    The locale_gen script does the same thing for currently enabled locales.
    Also note that all of the results are printed to STDOUT so no files are actually changes. It isn't fully "automatic" and the user is expected to sanity-check the results before overwriting the target files.

  • Any diff-like tools for comparing two .vcf (vcard) files?

    Hi all,
    I'm used to keeping contact information backups in .csv form, its just much simpler to parse with sed/awk etc., I have a small home-cooked script to move fields around between Evolution .csv files and JPilot .csv files such that they match (brittle, but worked for me).
    Current Evolution doesn't seem to support csv output anymore, though, and to be honest the brittle-ness of having to hard-code in my scripts which column in the csv was what data always stung a bit. Evolution DOES output vcards, as does J-Pilot. Unfortunately, parsing vcards with sed/awk and the like promises to be real headache-inducing.
    Basically, has anyone heard of tools for comparing .vcf files? Sort of like diff (which works line-by-line on text) but working element by element on .vcf files.

    Daenyth wrote:
    http://search.cpan.org/dist/Text-vCard/ … essbook.pm
    Write one?
    Was afraid the answer was gonna be that.

  • [Solved] A Challenge: Loop meld to update *.pacnew files

    I got no secret, I love meld .  Does a great job of showing differences alot of times if even scattered all over the page, allows for copy and paste...  vimdiff is good but requires a much more keypresses, copy and paste isn't as elegant, and with my fixed drop-down terminal is just too narrow to be able to do it well.  So what I usually end up doing is:
    find /etc -type f -name "*.pacnew"
    and just go through them one at a time:
    kdesu meld /etc/config /etc/config.pacnew
    I haven't do much work with loops, so I was hoping that someone that knew a little about them that could create a script that would go through them one by one.  I suppose this is going to be a little tricker because (I imagine) it's going to have to detect when the windowed instance closes.
    From the knowledge I know, I would do:
    #!/bin/bash
    # etc-update - merge *.pacnew files with original configurations with meld
    pacnew=$(find /etc -type f -name "*.pacnew")
    for i in $pacnew
    do
    kdesu meld $i
    done
    Which isn't going to work very well.  Well, I guess it could, but it's going to open them all at once and leave a nice scruched-up taskbar with *.pacnew files.  Like to be able to go through them one by one.
    Anyone had any experiences at this that could help?
    Last edited by Gen2ly (2009-10-03 01:46:55)

    brisbin33 wrote:
    http://pbrisbin.com:8080/bin/pacnews
    just do a find/replace of vimdiff for meld (or whatever...)
    Nice script, bris.  If I had know about that before, I'd be using it.   Do like the idea of the walk-through process and the saving of the the current one.
    lol, I just read your last post and just what I thought about.
    ugkbunb wrote:I just edited the pacdiff script to use meld and it worked great : ) -- I am not at home atm, but if you would like I can post up my edited pacdiff script.
    Yeah, I saw that on the wiki.  Said it was for CLI though so I didn't get to try.
    @ lolilolicon, and Procyon
    Still learning about pids, what I have seen was more complicated than this.  Pretty clever.
    Allan wrote:
    Maybe....
    #!/bin/bash
    # etc-update - merge *.pacnew files with original configurations with meld
    pacnew=$(find /etc -type f -name "*.pacnew")
    for i in $pacnew
    do
    kdesu meld $(basename $i .pacmew) $i &
    wait
    done
    Note - untested
    Ah, very nice.  Also fits into my knowledge of bash.   Hadn't thought about just using & but it works great.  Had to truncate the file extension and just used a bash filter:
    #!/bin/bash
    # pacnew-diff - merge *.pacnew files with original configurations with meld
    pacnew=$(find /etc -type f -name "*.pacnew")
    for config in $pacnew
    do
    kdesu meld ${config%\.*} $config &
    wait
    done
    Like to be able to do a backup of the current config and then erase the pacnew file afterword, but havn't found out a way to do that without having to type in a password everytime, but, I guess, that can easily be done elsewhere.
    Last edited by Gen2ly (2009-10-02 20:27:17)

  • Pacnew files appears in filesytem after upgrade. What do YOU do ?

    Hi all
    Having great fun with ArchLinux for the last two weeks now, and really enjoy this distro !!
    Did a system upgrade yesterday and everything went fine.
    But when I'm in console Emacs suddenly behaves strangely when typing danish characters :-/
    I looked in /etc for consulting the locale files and discovered some new files with a .pacnew extension.
    I did a
    grep pacnew /var/log/pacman.log
    and gets this
    [2008-02-04 09:20] >>> when merging the pacnew file with your old configuration.
    [2008-02-04 09:48] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
    [2008-02-04 09:48] ==> Check /etc/locale.gen.pacnew for new supported locales
    [2008-02-04 09:48] warning: /etc/profile installed as /etc/profile.pacnew
    [2008-02-04 09:48] warning: /etc/rc.conf installed as /etc/rc.conf.pacnew
    [2008-02-04 09:48] See /etc/crypttab(.pacnew) for more information.
    [2008-02-04 09:49] warning: /etc/logrotate.conf installed as /etc/logrotate.conf.pacnew
    [2008-02-04 09:49] warning: /etc/nanorc installed as /etc/nanorc.pacnew
    The question is now:
    What should I do with this ?? I guess that the /etc/locale.gen.pacnew is to blame for emacs character problems ??
    What do YOU do ??
    (please have in mind that I am not a emacs expert :-)

    stonecrest wrote:
    shining wrote:
    niller wrote:What do YOU do ??
    If it's a config file I edited in the past, I use vimdiff for merging both files.
    If not, I simply overwrite the old config file by the .pacnew one.
    I thought you only get a pacnew if you had made changes to the file. Or am I confused?
    No you are not confused, but they are exceptions. Like some times last year, because of a bug concerning files in NoUpgrade, we had to reset all md5sums of these files.
    And same when a file is relocated, like recently /etc/profile which moved from bash to filesystem.
    But you are right, in the general case, it does not happen, so I vimdiff all .pacnew files I get
    I also find the very simple pacdiff useful when there are several of them.
    Last edited by shining (2008-03-12 10:38:31)

Maybe you are looking for

  • A possible dumb question - capture HDV

    should i be able to hear the audio on the computer while doing capture from an HDV camcorder? Message was edited by: Forrest Jerome1

  • Power Nap through Ethernet adapter

    Hi, I am wondering what kind of network interface Power Nap can use : wireless, wired, wired via ethernet adapter (USB or Thunderbolt)? I am using a 2012 MBA mainly connecting to the Internet with an Ethernet Thunderbolt adapter. Will Power Nap be ab

  • Material and item category relationship

    For a given material, how can I get item category and higher level item category. I know mara stores item category group and t184 stores item category group and item category Thanks.

  • How to verify my account it always says when i downloaded a free app it says i did not alreadyverify

    ow to verify my account it always says when i downloaded a free app it says i did not alreadyverify

  • Error (-9813) help!

    One day iTunes works, and the next you are out in the cold...I keep getting the message: "iTunes could not connect to the iTunes store. An unknown error occurred (-9813). Make sure your network connection is active and try again." My network connecti