[solved] How does Pacman handle config files?

Hi,
I've read that Pacman handles config files by comparing their hashes in 3 different statuses.
(which are in current status, new status, and original status)
The current config file's hash is easily obtained, and so does the new ones'.
But how does Pacman get the original one's hash?
Can someone tell me, please?
Thank you, and happy new year,
bsdson
Last edited by bsdson.tw (2008-12-26 07:37:41)

It is stored in the pacman database.  e.g. look at /var/lib/pacman/local/pacman-3.2.1-2/files

Similar Messages

  • How does Photostream handle duplicate file names?

    My sister has an iPhone and an iPad, and takes photos with both. Her husband has an iPhone, and also takes photos. They have a PC. Photostream is enabled on all of these devices.
    Now, since all three devices use a simple sequential file numbering system (IMG_XXXX), they will produce duplicate file names.
    This, of course, becomes an issue when you consolidate the photos taken by multiple iOS devices in one folder as is done by Photostream on PC.
    Which brings me to my question: How does Photostream (on PC) handle duplicate file names? Does it simply overwrite, keeping the one with the latest date, or what? Does it inform the user in any way?
    Oddly, I have seen little discussion on this. It really seems like Photostream is pointless

    FOLLOWUP. Below, is a clearer explanation of my concern/question.
    My sister has an iPhone and an iPad, and takes photos with both. Her husband has an iPhone, and also takes photos. Photostream is enabled on three devices. They have a PC. iCloud Control Panel for Windows is installed, and Photostream is enabled.
    Now, since iOS devices use a simple sequential file numbering system (IMG_XXXX.JPG), when you consolidate these images into one folder as is done by Photostream on PC, you will sooner or later encounter two (or more) different photos that have the same file name. Different photos with the same file names can/will happen when you consolidate images taken with different iOS devices into the same folder.
    Which brings me to my question:
    How does Photostream (on PC) handle duplicate file names that are not duplicate images?
    Q: Does it simply overwrite, perhaps keeping the one with the latest date taken? In this case Photostream will not contain all of the photos it should.
    Q: Or, does it do something to create a unique filename when it encounters a duplicate file name? For example: IMG_0001, IMG_0001(1), IMG_0001(2)
    Oddly, I have seen no discussion on this. I hope someone can help me understand how Photostream handles this so we can decide how best to use Photostream, or if it is a feature we want to disable.
    Thank you,
    Lilla

  • How does Tomcat handle data files?

    Hello,
    To test something, i wrote a small test.jsp file, to figure out how tomcat handles data files. The content looks like this:
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <%@ page import="java.io.*"%>
    <%
              String Line;
              try
                   FileWriter fw = new FileWriter("http://localhost:8080/act/testfile.dat");
         PrintWriter pw = new PrintWriter(fw);
                   pw.write("yeah baby yeah");
                   pw.close();
                   FileReader fr = new FileReader("http://localhost:8080/act/testfile.dat");
         BufferedReader br = new BufferedReader(fr);
                   Line = br.readLine();
                   br.close();
              catch (Exception e)
                   Line = "OEPS : " + e.getMessage();
    %><%=Line%>
    </body>
    </html>
    This give me an error.
    When i chance the path of the Filewriter adn filereader to: c:/testfile.dat
    it works.
    Can anyone explain this to me...
    many thanks
    Hugo Hendriks

    I think you should rewrite your code using the following.
    FileWriter fw = new FileWriter(getServletContext().getRealPath("/testfile.txt"));
    FileReader fr = new FileReader(getServletContext().getRealPath("/testfile.txt"));It works for me.

  • How does iWeb handle packaged files. (Like Keynote files)

    I'm going to be changing this site soon, but I wanted to check here before I did.
    Symbolic Representation
    At the bottom of the page are two .key files for Keynote. When I dropped them onto iWeb, it shows them added as filename.key.zip but in the Domain file and in the file area on my iDisk, it shows as filename.key.
    If you attempt to download them, one of two things happen. The file is downloaded as a .zip file, unarchived, .zip file sent to the trash then opened in Keynote
    OR
    File is a .zip when it downloads, but only filename.key is shown making the user think the file is corrupt. If they add .zip to the end and double click, it will unarchive and you'll be able to open the file properly.
    I was wondering if anyone else had run into this? Does this work consistently OR why wouldn't it work for some people?

    I'm going to zip them soon to see if that solves the problem, but wanted to know how many people using OSX are seeing a problem now. So far, I've only had one person say they downloaded as corrupt .key files, everyone else can see them fine.
    Just curious about the "why" so that if anyone else has this problem, I'll have more info
    Either way I link it, the interface shows filename.key (even the rollover text after I create the page says filename.key), the URL area in the inspector shows filename.key.zip, and the file in the Domain file AND on the iDisk is filename.key.

  • [RESOLVED] How does pacman handle empty package directories?

    I started to ask this question after noticing that on a fresh arch64 install, I can't mount usb, because /media does not exist. This directory belongs to core/filesystem. After running pacman -Qk, it also turned out that extra/hicolor-icon-theme lacks some empty dirs:
    ~> pacman -Qk hicolor-icon-theme
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/128x128/devices/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/16x16/actions/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/16x16/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/22x22/actions/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/22x22/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/24x24/actions/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/24x24/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/48x48/actions/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/48x48/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/scalable/actions/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/scalable/status/ (No such file or directory)
    hicolor-icon-theme: 343 total files, 11 missing file(s)
    Finally, on another machine:
    ~> pacman -Qk hicolor-icon-theme
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/16x16/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/16x16/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/22x22/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/22x22/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/24x24/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/24x24/devices/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/24x24/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/256x256/apps/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/32x32/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/32x32/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/48x48/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/48x48/devices/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/48x48/status/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/scalable/categories/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/scalable/devices/ (No such file or directory)
    warning: hicolor-icon-theme: /usr/share/icons/hicolor/scalable/status/ (No such file or directory)
    hicolor-icon-theme: 343 total files, 16 missing file(s)
    and:
    ~> pacman -Qk ca-certificates
    warning: ca-certificates: /etc/ca-certificates/ (No such file or directory)
    warning: ca-certificates: /etc/ca-certificates/update.d/ (No such file or directory)
    ca-certificates: 163 total files, 2 missing file(s)
    Notice, that the two sets of missing dirs in hicolor-icon-theme are different between two installations. The problem is that on the first installation ca-certificates is OK So, it appears that pacman randomly ignores empty directories in packages.
    There was a timely thread at pacman-dev (http://mailman.archlinux.org/pipermail/ … 12554.html), where a similar issue was reported, but without any conclusion...
    Any ideas? Thanks
    Last edited by Leonid.I (2011-03-02 21:07:09)

    ANOKNUSA wrote:
    Leonid.I wrote:OK, I got it. The problem is indeed related to uninstalling: /media disappeared after removal of hal <snip>
    Several folk had the same problem after upgrading to KDE 4.6; no one seemed sure precisely what the culprit is.  I'm gonna try and reproduce this and check for/file a bug report.  You may have maimed two birds with one stone, Leonid.I
    If you mean hal, then at some point, it creates a data file /media/.hal-mtab, which on old installations (that went through a lot of ext media mounts), saves the dir, even if hal is removed. Of course, a separate question is why does hal contain /media. But otherwise, Allan is right: there is no natural good way of fixing this pacman behavior.
    Last edited by Leonid.I (2011-03-01 19:04:43)

  • How does OVS handle sparse files?

    I can see that if I create a new virtual machine a spare disk image file is created - fine. But I'm having problem with other type of operations. If I have a sparse System.img in some Virtual machine and I create a template of it - then the System.img copied to the template catalog is not sparse anymore- I guess this holds true also if you clone a virtual machine. Does anyone know if OVS support handling of sparse files when moving/copying the files arround? Or maybe know if this feature is planned?

    I think you should rewrite your code using the following.
    FileWriter fw = new FileWriter(getServletContext().getRealPath("/testfile.txt"));
    FileReader fr = new FileReader(getServletContext().getRealPath("/testfile.txt"));It works for me.

  • How does Oracle handle resource files?

    Good day everyone,
    I have a Java code that opens a text file. When I load this code into Oracle using loadjava, I also load in the text file as a resource file. When I run the code on Oracle (after publishing all necessary Java code), I get a NullPointerException, because it can't find the text file when I try to open it. I get no resolve errors when I user loadjava.
    How can Java inside Oracle open external text files?
    Thanks in advance for your help,
    Gary

    I think you should rewrite your code using the following.
    FileWriter fw = new FileWriter(getServletContext().getRealPath("/testfile.txt"));
    FileReader fr = new FileReader(getServletContext().getRealPath("/testfile.txt"));It works for me.

  • How does RoboHelp handle aspx files?

    Working to convert aspx files to RoboHelp then BACK to aspx without taking in a different tool. Is it possible? If so, how?

    Colum is right. We need more information. Presently, the only way to have RoboHelp generate "native .aspx" files is using a Multiscreen layout and publishing to SharePoint. You will find documentation on this process in the online help topic
    Adobe RoboHelp 11 * Publish native (ASPX) Multiscreen output to Microsoft SharePoint
    Also, you will want to refer to Willam VanWeelden's website where there is more info as well as a recording of a seminar Willam and I conducted last year. Recording of RoboHelp & SharePoint Integration Webinar Now Available | WvanWeelden.eu
    Thanks
    John Daigle
    Adobe Certified RoboHelp and Captivate Instructor
    Evergreen, Colorado
    www.showmethedemo.com

  • How does pacman handle major software releases?

    Hi, to make the question clear.
    When for example one has xfce 4.4.2 installed and xfce 4.4.3 comes I assume the upgrade is fairly straight forward since everything in the "meta-package" remains the same.
    However, when a major release with big changes comes that's a different issue. The settings up to 4.4.3 where managed by the "mcs-manager" package, but in the upcoming
    release the settings will be managed by the "xfce4-settings" package, therefore the old mcs-manager won't be upgraded, but unless told the new one won't be installed,
    or will it be? And will the old one be removed or will remain there on the hard drive?
    Well, that's the question. I'm not asking to implement a feature or complainig, I just want to know what to expect, and if it's got to be done by hand so be it. It's not that hard.
    Thanks.

    I disagree with brisbin33. Pacman doesn't check for new members of "groups" after they're installed. There really is no such thing as a "group" once those packages are on your system so I don't think it will detect new packages in the group unless they're specified as a dependencies of other packages, which won't be the case for all packages in the group because that would force the user to install all of the them, thus eliminating the point of having groups to begin with.
    This would be solved by having a true way to track installed optdepends so that we could create true metapackages. I've made a suggestion (http://bugs.archlinux.org/task/12708) and so have some others, but it seems that this is not even on the todo list and most of the influential users/devs seem directly opposed to making any such change, even if it means living with the permakludge called "groups". (and yes, I would submit a patch, if I knew C or could hack my way through it well enough)
    Last edited by Xyne (2009-02-25 16:32:45)

  • How does pacman know how to remove packages?

    I've been looking at the 'Creating Packages' page, and it says to create a pkgbuild I only need to specify the build function. My question is... how does pacman know which files to remove when you do pacman -R? Does it keep track of all the files that were installed via build()?
    Second question: How do you guys keep track of packages that weren't installed via the AUR? For example, if you want to hack on a project and use that hacked copy instead of the one available in the repos, what do you usually do? I'm guessing that I should let pacman keep track of those by creating pkgbuilds for them, naming them something like [packagename]-[version]-myown, and noting that it conflicts with the package in the Arch repos... is this correct?

    When you build a package with makepkg, the build function is responsible for installing the files that will be contained in the package under ${BUILD_DIR}/pkg. That directory will be tar'ed and compacted to make your final package. When you install it with pacman, will be created the file  /var/lib/pacman/local/<name of your package>/files which will list all the files owned by your package. So pacman can know how to remove them when you ask it to be deleted.
    About your 2nd. question, you are quite right. The only correction is that the name of your new package should be something like "package-myown-version". You should put the old name in the conflicts and provides directive of the PKGBUILD. You should read the wiki about ABS. With it, you can get a copy of all PKGBUILDS for your current repositories, so you can change what pleases you more.

  • How does Aperture handle file structure

    I have been working with iPhoto since its infancy and have one big issue with it, namely that it is such a closed system. I dislike that everything needs to be imported and exported to use it elsewhere, clogging up my computer with all these duplicates. Does Aperture handle that better? I spent 2 hours reading different reviews and discussions and for some reason, nobody seems to discuss exactly that, maybe most people don't mind to have a vault structure? If so, how do you handle sharing files outside of the tools like Facebook export etc that are offered?
    Thanks ~ Barb

    namely that it is such a closed system.
    It's not. It's a Database and this
    everything needs to be imported...
    is a characteristic of databases. This
    and exported to use it elsewhere
    is just not true if you use any of the very many ways that the OS and other applications integrate with iPhoto. I rarely, if ever, exported from iPhoto when it was my primary Photo app.
    The point is not to defend iPhoto, but if the database aspect of it irritates you then run a mile from Aperture. Everything has to be imported and can be accessed only in (pretty much) the same ways as they can be in iPhoto.
    how do you handle sharing files outside of the tools like Facebook export etc that are offered?
    Here's a stock answer I use over on the iPhoto forum. You can pretty much swap the word 'Aperture' for iPhoto:
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    +*(Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)+*
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Regards
    TD

  • How does FCP handle 23.98 DV Files?

    Hi All,
    Has anyone Edited using the DV-NTSC 24P (23.98fps) Easy Setup?
    1) How does FCP handle this video connected to a DV Converter Box like the Canopus ADVC-110?
    2) Does it actually play at 23.98fps on a monitor connected to the DV Converter Box?
    3) Does it get converted to 29.97fps somewhere in the process before it gets displayed?
    4) is it displayed at 29.97fps or is it really being displayed at 23.98fps?
    these are things that I am not sure of.
    sorry if I posted this message a couple of times. I didn't know that hitting the "Tab" Button posts the message, I thought it would just function like the Tab in a normal Text editor and indent a line. But here it doesn't.
    thanks
    Kalagan

    Hi,
    Thanks for the feed back. I guess I should fill in the caps a little.
    *DESCRIPTION OF ISSUE:*
    One of our main Clients Disney, is migrating to a Tapeless Workflow based on ProRes HQ 422 @ 23.98fps. From here on out, they will only send us ProRes HQ 422 1920x1080 files @ 23.98fps and they want us to Edit every project we work on for them @ 23.98fps. At the moment, it doesn't sound like they care if we Edit our projects in ProRes HD or some SD format, but the important thing to them is that we edit @ 23.98fps.
    PROBLEM:
    Our facility doesn't have the infrastructure to support 25 machines accessing ProRes HQ 422 files. Our facility was built to support DV NTSC @ 29.97fps and we have been working this way fairly well, for a number of years.
    SOLUTION:
    I am trying to find a way to continue to us our current equipment and satisfy Disney's request to work on all their projects at 23.98fps, starting from 1920x1080 ProRes HQ 422 files @ 23.98fps. So, it was my hope to be able to take the 23.98fps ProRes files and export them to 23.98fps DV NTSC. This way we wouldn't have to reconfigure our entire Facility (which would cost a couple hundred Thousand dollars).
    My approach was to:
    1) Use Media Manager to render a new DV NTSC file at 23.98fps, which it does pretty well for the most part. It keeps the Timecode consistent between the two files (very important), but doesn't allow you to Letterbox the 16x9 video in the 4x3 frame, it just stretches it to fill the entire 4x3 frame (not so good).
    2) Then import the newly created DV NTSC 23.98fps file into a FCP Project based on the DV NTSC 24(p) 23.98fps EASY SETUP. Which works well. No problems there.
    3) Then Play the file in FCP out through a Firewire based Canopus ADVC-110 DV Converter connected to a SD Sony Monitor. This seemed to worked fine also.
    The fact that it plays is great!!!! But, that brings up the question, is it really playing a 23.98fps?
    My understanding of Standard Definition and specifically DV NTSC, is that it can only be displayed at 29.97fps, it doesn't support 23.98fps natively. So the fact that it played when I tested it got me thinking that I may be missing something here and DV NTSC and other SD equipment (like the Sony SD Monitor) can playback/support 23.98fps SD video. But that goes against everything I know up to this point!!!
    Have I been wrong all this time?
    1) Can SD Video and DV NTSC Video be displayed at 23.98fps?
    2) Or is it getting converted to 29.97fps somewhere in the process before it is getting displayed?
    3) If it is getting converted back to 29.97fps, then where is it getting converted, FCP or in the DV Converter Box?
    I am sorry I went a little long on this email, but it is a problem that will have great influence on they way we work for a couple of years to come!!
    Thanks for your input!!
    Kalagan

  • How does iphoto handle files exactly?

    using the program spring cleaning, i found all images outside of my iphoto library and imported them into my library. my question now is, if i run the search again, finding all images not in my iphoto library, can i safely delete those images since they have been copied into iphoto or are they still needed as a reference for the program? how does iphoto work with files exactly? i know there's an "original" and a "data file", but where are each of these stored? when a photo is imported to the iphoto library, does it make a copy of the original and the data file or what?

    ryanfg
    Unless you changed the default setting in the iPhoto preferences, then if a photo is in the iPhoto Window then it's in the iPhoto Library Folder.
    A Note about the iPhoto Library Folder:
    In this folder there are various files, which are the Library itself and some ancillary files. Then you have three folders
    Originals are the photos as they were downloaded from your camera or scanner.
    (ii) Modified contains edited pics, shots that you have cropped, rotated or changed in any way.
    This allows the Photos -> Revert to Original command - very useful if you don't like the changes you've made.
    (iii) Data holds the thumbnails the the app needs to show you the photos in the iPhoto Window.
    Regards
    TD

  • How does impdp handles external tables

    I am just done with schema import and one of the package is invalid because it is referring the External Table. I am getting the error " Table or View does not exist".
    How does impdp handles external tables ?
    Do we need to replicate the directories and files from the source to imported destination ?
    Thanks

    Hi,
    Yes...
    external table directory not available on imported destination operating system
    You need to create the directories and files from the source to imported destination
    Recompile the invalid package
    Thanks

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

Maybe you are looking for

  • How to convert date format?

    HI, I want to convert one kind of data format like default to another kind of format like "DD/MM/YY". I remember I should use SimpleDateFormat class , but I fogot how to use it . Thanks gary

  • Aggregation for all the year

    Hello all We are using oracle express 6.3.4 for Cube Buildind using RAA/RAM. in our project the time dimension structure is as given below. Year>Quarter>Month we have measure called Number of Establishments Registred and Pension AMount Paid Number of

  • Qaaws - Query as a Web Service configuration in BO XI R 3.1 in SSL set up

    Description of Problem or Question: -- Need help in adding/managing hosts in the QAAWS component (Desktop toolset) to add/define new host. The server has a physical name like (for e.g.) ABCD1234 While trying to add a host in QAAWS designer the URL is

  • Two computers

    I have asked this questioned before but I have one thing to add. I have two computers and I started using one only for my iphone. I want to put my photos on the second computers but there are differences between the computers..contacts.etc and I don'

  • No fault found so we are going to bill you £99 and...

    Déjà vu yet again with BT. For a while I had people telling me that they have been calling me several times but I have not been in. I had been in but never heard the phone ring. I then get a call from my Brother on my mobile, he said "are you not at