Checkout files from a pacman package

Just wonder whether it's possible to checkout files from a pacman package. Sometimes I want to revert a file to its stock version. For example:
pacman -checkout /etc/mpd.conf mpd.pkg.tar.xz

karol wrote:Arch packages are just compressed archives, so you can use standard tools like tar / bsdtar for this.
Do you mean something like this?
tar -Jxvf /var/cache/pacman/pkg/mpd.pkg.tar.xz etc/mpd.conf -O > /etc/mpd.conf
It works but I need to manually find the package in cache and specify the filename. If pacman has an internal *checkout* feature things would be much easier.

Similar Messages

  • How to embed and launch ipa file from another ipa package created using Air for iOS

    Hi Guys,
    Anybody out there knowing how to embed and launch ipa file from another ipa package created using Air for iOS ?
    I am having 1 ipa file created using Xcode, Now i need to include that file in my ipa Package which is created using Flash CS 5.5 and Air for iOS. Also i need to know how to open my 1st ipa file from AS3 ?
    Thanks,

    Hi Sir,
    Thanks for your reply.
    But in that case user need to download 2 applications right. I need user to download my parent application created using Flash and that package contain one more ipa created using Xcode, so from my parent app only user should able to open my 2nd app. Is there any way to do that?
    Ps:  I am not talking about in-app but 2 individual apps inside one package.

  • Can no longer print multiple files from a PDF package

    Prior to our upgrade to Acrobat Pro X, we had the ability to print multiple files within a PDF package.  We would simply select the files we wanted to print, say print and it would print them all.  It no longer does so, although it still allows us to select multiple files and to select ALL from the print menu but then it only sends the first file to the printer.
    We have tried it on both Windows XP and Windows 7 and it won't work correctly on either one.
    Does anyone have any ideas?  This is very frustrating as these packages are created by folks bundling their e-mail messages to send to the fileroom for printing and filing in the official case files.  With the old method we were able to quickly print out all the messages without attachments, and then would only have to individually print those messages that had attachments.  As stands now if we get a package with 100 messages in  it we will have to select and print each file individually instead of being able to print the 75 without attachments as one print job and then only have to do the seperate handling for the remaining 25 with attachments.
    Any and all suggestions are welcome.

    I'm using windows 7. The Acrobat that came with the Adobe Creative Suit 4 is Adobe Acrobat Pro. When I am on a web site that has a page in PDF I click on the printer icon and the print page comes up but the preview side is blank and will not print the page.

  • Facing problem to Checkin and checkout file from starteam using vba

    Hi,
    Im trying to checkin and checkout file in starteam through vba. I have imported the
    StarTeamSDK104.dll in reference in vba project and tried to accomplish my task.
    I am able to locate the file, but not able to checkout/checkin the file. I am not sure how to use checkin/checkout function in vba. I am getting an error at the checkout code(hichlighted in bold in the below code). Also I was able to
    do it in java but i want it in vba.
    Could someone help me on this.
    Below is the code im using.
    Sub ST_Test()
    Dim strAddress As String
    Dim nPort As Long
    Dim strUser As String
    Dim strPassword As String
    Dim strProjectName As String
    strAddress = "Sample Address"
    nPort = 1234
    strUser = "Sample Username"
    strPassword = "Sample Password"
    strProjectName = "Sample Project"
    Dim Factory As New StServerFactory
    Dim Server As StServer
    Set Server = Factory.Create(strAddress, nPort)
    Server.Connect
    Server.logOn strUser, strPassword
    Dim project As StProject
    Set project = FindProject(Server, strProjectName)
    Dim view As StView
    Dim finder As StStarTeamFinder
    Dim Folder As Stfolder
    Set view = project.DefaultView
    Set Folder = view.RootFolder
    For Each chk In Folder.getItems(Server.TypeNames.File)
        Dim fileitem As StFile
        Set fileitem = chk
        If fileitem.Name = "Filename.txt" Then
            fileitem.checkout(0,False,True,False )
        End If
    Next chk
    End Sub

    Hi,
    As for the checkout method, please refer to the following link:
    http://msdn.microsoft.com/en-us/library/office/aa223821(v=office.11).aspx
    The syntax is:
    expression.CheckOut(FileName)
    Jaynet Zhang
    TechNet Community Support

  • Best way to spool DYNAMIC SQL query to file from PL/SQL

    Best way to spool DYNAMIC SQL query to file from PL/SQL [Package], not SqlPlus
    I'm looking for suggestions on how to create an output file (fixed width and comma delimited) from a SELECT that is dynamically built. Basically, I've got some tables that are used to define the SELECT and to describe the output format. For instance, one table has the SELECT while another is used to defined the column "formats" (e.g., Column Order, Justification, FormatMask, Default value, min length, ...). The user has an app that they can use to customize the output...which leaving the gathering of the data untouched. I'm trying to keep this formatting and/or default logic out of the actual query. This lead me into a problem.
    Example query :
    SELECT CONTRACT_ID,PV_ID,START_DATE
    FROM CONTRACT
    WHERE CONTRACT_ID = <<value>>Customization Table:
    CONTRACT_ID : 2,Numeric,Right
    PV_ID : 1,Numeric,Mask(0000)
    START_DATE : 3,Date,Mask(mm/dd/yyyy)The first value is the kicker (ColumnOrder) as well as the fact that the number of columns is dynamic. Technically, if I could use SqlPlus...then I could just use SPOOL. However, I'm not.
    So basically, I'm trying to build a generic routine that can take a SQL string execute the SELECT and map the output using data from another table to a file.
    Any suggestions?
    Thanks,
    Jason

    You could build the select statement within PL/SQL and open it using a cursor variable. You could write it to a file using the package 'UTL_FILE'. If you want to display the output using SQL*Plus, you could have an out parameter as a ref cursor.

  • How to eliminate "deleted" images from the .key package?

    I've noticed that sometimes, when I delete an image (or movie) from a keynote file, it disappears from the slide show... but the actual image (or movie) file remains in the keynote package. If those images (or movies) are large, it creates enormous unnecessary swelling of the keynote file size.
    I've tried deleting these files from the .key package, but that seems to confuse Keynote, and the presentation won't run.
    Is there a way to clean up a .key package and get rid of those unneeded files?

    No, it's not plain english and it's fairly hard to figure out, but once you do, you can find what you need fairly quickly. Modifying it successfully can be a bit of a chore, too, as it's mainly trial and error. Knowing the name of your file helps as you can do a search to find it, but how to properly get rid of it without Keynote having problems may be a little more daunting. Make sure you practice on a "copy" of the file.
    There's supposed to be a new version coming, but no one knows if it's going to be sooner or later.

  • [SOLVED] Resetting config files from a package

    Suppose I modify a file called /etc/examplefile.conf from a package example-package.
    What is the easiest / most elegant way to reset this file? Reset = restore the file to its original, removing my modifications.
    This[1] topic discusses this, but it is two years old. I would say the "best" solution there was the one suggested in #7:
    you could move the config file first then reinstall.
    But I'm not sure if this is safe. For a dummy example, removing /etc/pacman.conf then reinstalling pacman wouldn't probably be a good idea (I suspect this wouldn't work).
    OBS.: Getting the original file from the package from the cache is an obvious solution, but I'm searching for a simpler (more direct) way to do this (a bash/zsh one-liner would be sufficient, for example).
    [1]: https://bbs.archlinux.org/viewtopic.php?id=137526
    Last edited by thiagowfx (2014-04-26 21:49:20)

    FYI, pkg_scripts are available both in the AUR https://aur.archlinux.org/packages/pkg_scripts/ and in Xyne's repo: https://wiki.archlinux.org/index.php/Un … #xyne-i686 or https://wiki.archlinux.org/index.php/Un … #xyne-i686

  • How can  I checkout an existing file from CVS without going through the wiz

    How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?

    You can't. AI doesn't produce .PLT files.

  • "An error occurred while extracting files from the package "BaseSystem.pkg".

    Hello!
    I have a
    MacBookPro5,5
    Prozessortyp:Intel Core 2 Duo
    Prozessorgeschwindigkeit:2.26 GHz
    Anzahl der Prozessoren:1
    Gesamtzahl der Kerne:2
    L2-Cache:3 MB
    Speicher:2 GB
    Busgeschwindigkeit:1.07 GHz
    Boot-ROM-Version:MBP55.00AC.B03
    SMC-Version (System):1.47f2
    Hardware-UUID:A2DD27C4-9829-5A4D-854B-485EF8A6B20F
    Problem:
    I upgraded Leopard to Snow Leopard. Everything worked fine for a month. To free up disk space I deleted some of the iPhoto flders (modfied and original images). Everything worked still fine. Shut down the computer. Next day it was incredibly slow. At the same time the indexing was running. I stopped indexing, but stll slow. Every operation took minutes. I tried all the tricks that I found in the internet (repaired file permissions, repaired disk, cleared PRAM , moved big filed from desktop, etc.). After 24 full hours of trying all this I decided to erase the hard drive and reinstall, directly from the Snow Leopard Install disk, but it fails after downloading the packages. Below is the part of the log. Then I tried to use the old Leopard install DVD to reinstall Leopard, it then sais estimated time 12 hours or so and eventually crashed, spitting out a lot of "reportcrash" in the log. What is going on? I'm running out of options. Any advice? Would zeroing the hard drive help? If nothing else I plan to buy a new hard drive, since the only explanation I have is that there is a problem with the hard driven although the disk utility says it is OK. I need a bigger one anyway. Any ideas? Thank you!
    Aug 16 05:17:31 localhost OSInstaller[139]: IFPKInstallElement (191 packages)
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: ----- Begin install -----
    Aug 16 05:17:35 localhost OSInstaller[139]: PackageKit: request=PKInstallRequest <191 packages, destination=/Volumes/Macintosh HD>
    Aug 16 05:17:36 localhost OSInstaller[139]: PackageKit: Extracting /Volumes/Macintosh HD/Mac OS X Install Data/BaseSystem.pkg (destination=/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root, uid=0)
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/DataPool.c:116 : Error: finished pool without filling it
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/commonUtils.c: 315: Error: fh_pread -1
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:236: Error: write failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:260: Error: futimes failed for /Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root//System/Library/Frameworks/OpenCL.framework/Versi ons/A/Resources/runtime.amdil.bc: Invalid argument
    Aug 16 05:31:59 localhost Unknown[80]: /SourceCache/AppleFSCompression/AppleFSCompression-24.0.1/Common/StreamCompress or.c:829: Error: returning errno 22 from FinishStreamCompressorQueue
    Aug 16 05:32:10 localhost OSInstaller[139]: PackageKit: Install Failed: PKG: extracting "com.apple.pkg.BaseSystem"\nError Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error") {\n    NSFilePath = "/Volumes/Macintosh HD/.OSInstallSandbox-tmp/Root";\n    NSLocalizedDescription = "An error occurred while extracting files from the package \U201cBaseSystem.pkg\U201d.";\n    NSURL = "BaseSystem.pkg -- file://localhost/Volumes/Macintosh%20HD/Mac%20OS%20X%20Install%20Data/index.pro duct";\n    NSUnderlyingError = "Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 \"The operation couldn\U2019t be completed. FinishStreamCompressorQueue error\"";\n    PKInstallPackageIdentifier = "com.apple.pkg.BaseSystem";\n}
    Aug 16 05:32:10 localhost OSInstaller[139]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=110 UserInfo=0x12c8366a0 "An error occurred while extracting files from the package “BaseSystem.pkg”." Underlying Error=(Error Domain=BOMCopierFatalError Code=22 UserInfo=0x12e703300 "The operation couldn’t be completed. FinishStreamCompressorQueue error")
    Aug 16 05:32:11 localhost OSInstaller[139]: Install failed: Die Installation ist aufgrund eines Fehlers fehlgeschlagen. Wenden Sie sich an den Hersteller der Software.
    Aug 16 05:32:13 localhost OSInstaller[139]: Allowing machine sleep.
    Aug 16 05:32:15 localhost OSInstaller[139]: Memory statistics for 'Installation ist fehlgeschlagen' pane:
    Aug 16 05:32:15 localhost OSInstaller[139]: Physical Memory Allocation:   139 MB wired,   259 MB trapped,   397 MB active,     7 MB inactive,  1246 MB free,  1650 MB usable,  2048 MB total

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • Reading an XML file from a package .....

    I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this directory ???
    I have granted CREATE directory permissions...
    If not any suggestion or advice is great ???
    Thank you!!

    BANNER
    1     Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    2     PL/SQL Release 11.1.0.6.0 - Production
    3     CORE     11.1.0.6.0     Production
    4     TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    5     NLSRTL Version 11.1.0.6.0 - Production
    Thank you !!!

  • Reading an XML file from package .....

    I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this directory ???
    If not any suggestion or advice is great ???

    Depends upon the version of Oracle being used. Going from memory, I think it started with 10g that you had to CREATE DIRECTORY and then use that object in references to disk. It could have been 9i as I skipped that version. If you look at the documentation for whatever provided procedure you are calling it will tell you what it expects.
    As the code runs on the server the DB resides on, the data file will need to be network accessible from there in order for your code to read the file.

  • How to extract a file from a file (not application) package?

    Hi folks, I'm trying to access directly the document.xml file that sits inside a MindManager file, to parse the XML and read information that has been added to a mind map but which does not get exported by this application's standard export options.
    Opening the file with Text Wrangler reveals an internal 'package' structure within the file - including a Document.xml file. However, OSX seems to treat these 'packages posing as files' differently to 'packages posing as applications', where in Finder it's possible to Show Package Content, and files can be accessed directly.
    Maybe there is a way to either change the way OSX manages these files within files - or just access this file to copy it or its contents out into a separate plain text file?
    Any ideas much appreciated.
    Best,
    Keith..

    Thanks ds store - a good point regarding Pacifist.
    Sorry, I should have mentioned that I already have Pacifist - I used it to prove to myself that these files were indeed packages when I saw the structure in Text Wrangler's Disk Browser. It does reveal the contents of MindManager files with its open package option and so, yes, I could use Pacifist to copy out the XML file.
    However, I need to track changes in several target files, so I really need direct access to the xml files (or their text content) to automate the process - so I was hoping to simply enable the Finder's Show Package Contents option for this type of file.
    Automation with Pacifist would require writing Apple Scripts and/or Automator and if I'm going to take that approach, I may as well control Text Wrangler to extract the XML text from inside each xml file, rather than work at the xml file level.
    Best,
    Keith..

  • How to pull a Specific files from the local path using SSIS package

    Hi Friends,
    I have 15 Dealers files .With the Files name as follows
    1. ''ACTEST00001_20141112_0408_INV.TXT''
    2. ''ACTEST00002_20141112_0408_INV.TXT''
    I will get these files through FTP on Daily basis with changes on date alone.
    I will have 4 files for each dealers.like INV,SERVICE,SALES,APPOINTMENT.
    SO i need to fetch a particular dealer with particular date.
    I need to create this scenario in SSIS package.Please suggest me how to create this and what are all the Tasks i need to use to implement this process.
    Arunraj Kumar

    http://microsoft-ssis.blogspot.jp/2011/08/foreach-ftp-file-enumerator.html
    http://www.bidn.com/blogs/MikeDavis/ssis/559/ssis-skip-certain-files-in-a-for-each-loop
    http://www.sqlis.com/sqlis/post/Looping-over-files-with-the-Foreach-Loop.aspx
    http://www.rad.pasfu.com/index.php?/archives/22-Looping-through-specific-files-SSIS.html
    http://www.mssqltips.com/sqlservertip/1641/get-list-of-files-from-an-ftp-server-in-sql-server-integration-services/

  • Hi this message appears after 2 hours downloading Mavericks : an error occurred while extracting files from the package "mzps4135638417199433253.pkg"

    Hi this message appears after 2 hours downloading Mavericks in App Store :
    an error occurred while extracting files from the package "mzps4135638417199433253.pkg"
    Same with "CMD + R"
    Help...

    It sounds to me like your Internal Hard Drive is failing.
    I recommend you buy a new one, that is a good candidate for replacing the old one, but install it in an External enclosure and Install a fresh Mac OS X on it from the DVD. You can boot your Mac from any attached drive.
    The new System can be used to get some work done, check your emails, and takes the pressure off resolving this immediately. You can also attempt to salvage files off the old drive if needed.
    Once things seem to be working, then move the new drive inside the computer. Failures at this point may be due to bad cable, which has been a problem in some of these MacBooks.
    Use security erase, write Zeroes, one pass, to re-write every block on the old drive. Any block discovered to be bad will be replaced with spares the drive holds in reserve for this purpose. If more than 10 blocks are pared on one pass, "Initialization Failed!" will be the result. Although you can try the erase again, there is some question whether you want to trust this drive with your precious data.

  • Using Assembler to extract links from a file contained in a package

    Hi everyone,
    I need help creating a DDX file that would extract links from the second file in a package. Can you point me to some examples somewhere? The file has links to other files in the package. It doesn`t work when I remove it from the package, the links seem to be broken, so I can`t extract them. I've tried a lot of ways with PackageFiles nameKeys but I always get the Cover page links for some reason. We need to extract the links to view what they need to look like.  Ultimately, I need to replace URL links with links to files in a package.  In the solution, I will extract URL links, replace them with GOTOE actions in the .xfdf file and reinsert the links in that PDF that's being packaged.  It will point directly to files in the package as oppose to web locations.  I plan to apply an XSLT transformation as a step in the process.
    Thanks,
    Alain Roy

    You mentioned that The file has links to other files in the package. How did those links get there? Were those links originally between PDF files in a relative folder structure? Then you put those PDF files into the PDF package?
    Unfortunately, Acrobat 9 does not support hypertext linking between files in a PDF package.
    You mentioned your lack of success getting the links from the second file in the PDF package. In your PackageFiles result element, you can specify the name of the file you want, but you cannot specify the ordinal number of the file.  Here is a DDX that extracts a file from a package. The <NoPackage> changes the result from a PDF package to a single PDF.
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
    <PDF result="myresult">
    <NoPackage/>
        <PackageFiles  nameKeys="Recap.pdf">
            <PDF source="doc1"/>
        </PackageFiles>
    </PDF>
    </DDX>

Maybe you are looking for

  • Account Manager Question

    If I am the account manager can anyone make changes from their phone?  I have recently noticed that my other lines phone calls are not showing up.  They are there and it tells me how long they were on the phone but there is no phone number. help...th

  • Change IP for server

    Dear All, When I change IP server, installed BW, then I log on Portal : Content Administration -> Web Dynpro, choose Maintain JCO Destinations, and I test BI_METADATA ... there's error: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Con

  • Creative Cloud Files Public Download Bug

    When I make a file in my Creative Cloud Files public and downloadable and share the link, the download does not work for other people. I can download the file fine when I am signed in to my account. When the link is shared and someone clicks Actions

  • EM 12c Email Notification Setup

    Hello, I've got EM 12c up and running.  I've got some notifications already setup.  They are for the database, critical/fatal/warning, that I set up through the incident manager.  Not sure if this was the right way to go about that but anyways it see

  • Running H323 and SIP on the same cisco gateway

    Hi there! I running Yate and Asterisk/IAX2 in the same box, to get H323 and convert to SIP, but I have a costumer that wants to send H323 with codec g723, but it doesn?t work good at all. So, can have H323 and SIP running on the same box like a c3600