How to pacman -Sy by hand, or against only a single repo? [SOLVED]

I've written a wrapper for makepkg that builds my packages and adds them to my local custom repo. If I give the wrapper a -i flag, I want to then install them from the repo. I suppose I could just use pacman -U, but I prefer to use yaourt -S local_repo/package_name=desired_version. To do this, though, I have to synch my pacman lib db against the newly updated local_repo. Currently I'm just doing a pacman -Sy to do that. Downside is that hits all the other repos too. Often I find myself building and rebuilding and reinstalling a package multiple times as I tweak the PKGBUILD. Repeatedly synching against all the repos is bad for me (few extra seconds every cycle) and bad for the repos.
What I need is a way to synch against only my local_repo. I can't figure out how to do that using any pacman cmd-line switch. The format of the repo file looks very simple, so I tried doing this manually:
sudo tar -xzf /path/to/local_repo/local_repo.db.tar.gz -C /var/lib/pacman/sync/local_repo
stat --printf "%X" /path/to/local_repo/local_repo.db.tar.gz | sudo tee /var/lib/pacman/sync/local_repo/.lastupdate > /dev/null
But pacman still seems not to notice the changes. E.g. if I do pacman -Si local_repo/new_package, I get a report of the previous package version, not the newly added one.
Is there any way to synch just my local repo, either using pacman or by hand?
Last edited by Profjim (2009-07-31 21:14:34)

You're right, that works.  As happens too often, I was making things more difficult than they needed to be...
EDIT: it works sometimes, and sometimes doesn't. I still can't figure out what determines the difference...
If you untar on top of a directory, any existing directories (at least at the top level) that don't exist in the archive will be left there, not removed. But this is fine for my purposes. I can wait until the next full pacman sync to delete them.
And the problem of I-dont-wanna-untar-the-old-stuff-too can be solved by doing:
sudo tar -xzvf "$PKGDEST/$REPONAME.db.tar.gz" --after-date="@$(cat /var/lib/pacman/sync/$REPONAME/.lastupdate)" -C /var/lib/pacman/sync/$REPONAME
That is, we use the sync dir's existing .lastupdate file to give us a date (in Unix epoch format, which tar needs to see as "@12234556"), and we tell tar just to extract the files modified after that date. I can tell from the -v output that this is working properly.
But it's still a mystery why sometimes this works and sometimes doesn't...
# ...add new package version to local_repo, then...
sudo repo-add path/to/local_repo.db.tar.gz path/to/new/package
# untar local_repo.db.tar.gz on top of /var/lib/pacman/sync/local_repo, as above, then...
sudo pacman -S local_repo/new_package=new_version
Last edited by Profjim (2009-07-31 21:00:56)

Similar Messages

  • Ai-cs6 How Do I trace a hand drawn sketch to a single line vector outline?

    So I am basically a brand new user to ai-cs6 and have been working on a project for a friend. I've drawn up the basic components of the logo she wants, all separate individual pieces. My intention is/was to trace in each piece, and scale, rotate, and clean them up according to how the final piece should look. Where I'm running into trouble is that the sketches are not point perfect, meaning there's some shading in the hand drawns, and the lines are rough in areas. I'm trying to avoid redrawing the pieces because we both are really happy with where they're at. What I'd like to do with ai-cs6 and I'm hoping this community of creative individuals can help is to trace very simply a one line vector of the outline of the image. So instead of creating a piece that has stroke straight from the scanned in artwork, I get a single line, with multiple points, that flows the simple shape of the piece. From there it seems it would be pretty simple to just increase the stroke weight and modify the style of line to make it look how we would like. All I've succesfully been able to do so far, with the help of some videos and google searching, is to get a traced image that's basically an outline of the sketch. This is o.k. except that since the sketch has some rough line sections ai-cs6 is adding either a lot of detail and making it look pretty rough, or it's missing entire sections and leaving them blank. Any insight and help into getting this figured would be great, I'm gonna roll with what image trace is giving me so I can give her an image of the logo today, but hoping that I can clean it up and get closer to a finished product by next week. Thank you very much I'm grateful that there are discussion forums like this out there to help users of all skill level continue flowing and working with these awesome adobe products.
    Max

    What you're talking about is generically called autotracing in centerline mode. Most autotrace programs can either try to trace all the way around the areas of dark pixels (outline tracing), or try to trace along the middles of areas of dark pixels (centerline tracing).
    In Illustrator's autotrace settings, for centerline mode, you turn off the tracing of outlines (fills) and turn on the tracing of centerlines (strokes). That's the basic setting. From there, you try to adjust the various threshold settings to get as close to what you want as you can.
    When Illustrator's autotrace feature is set to try to trace centerlines, it also tries to set the vector path stroke weights to approximate the thicknesses of what it interprets as a stroke. So after the autotracing is done,  you can expand it and then globally set the stroke weight to a uniform value.
    Beyond that, no one can really advise you more specifically without seeing the specific image involved. Every image is different.
    Generally speaking, autotracing is crap. It's an amateurish workaround to avoid doing what should really be done: Trace the paths manually with the drawing tools.
    JET

  • How do I make a hands free call with the iphone 4s?

    How do I make a hands free call with the iphone 4s?  I have a bluetooth car device and when I try to talk through it (as I did with my old phone) to call someone it does not work.  so far only hte last person called is redialed.

    That is a carrier-based service. So first you have to make sure your service contract includes that feature.
    It usually also includes Call Hold. So you call the first party, put them on hold, call the second, then reactivate the first. But only if your carrier allows you to.

  • HT5622 How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    How do I change the Apple id against a certain telephone number?  I have two iPhones and wish to use a different Apple id for each and confused as to how I do this?

    Create a new Apple ID for the second phone. If you are setting the phones up as new phone enter the ID you want to use on each phone.
    If both phones are already signed in to one Apple ID then use the settings app to change Apple IDs on one phone.
    Settings > iTunes and App Store > tap on the Apple ID > sign out > sign in with alternate Apple ID.
    Note that if you have downloaded apps with the original Apple ID on the phone with the new Apple ID, those apps will still be associated with the old Apple ID and will require the old ID and password in order to update them.

  • How do I dispute a copyright claim against a video i made using a trailer in iMovie? The only content I used was the video I shot of friends daughter on a merry-go-round.IMovie had the music etc that I used.

    How do I dispute a copyright claim against a video i made using a trailer in iMovie? The only content I used was the video I shot of friends daughter on a merry-go-round.IMovie had the music etc that I used. Here's the message It gives a number of options to choose from if I want to dispute the claim but I don't know which one this would come under. Several obviously don't apply and of the ones left I don't know which content that is in IMovie that I use comes under. "This video is my original content and I own the rights to it" "I have a license or written permission of the property rights holder to use this material" "My use of the content meets the legal requirements for fair use of fair dealing under applicable copyright laws" or "The content is in the public domain or is not eligible for copright protection."

    You want to use the "I have a license..." option, since clearly the music is not yours, but Apple has granted you a license.
    For your license, see this document, section 2.M. http://images.apple.com/legal/sla/docs/iMovie.pdf
    For more on this irritating problem and why it is so hard to solve, see this article. (It is a problem for Final Cut Pro users as well.)
    http://www.larryjordan.biz/app_bin/wordpress/archives/1842

  • 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 do I set the hand tool to be the default tool in Acrobat X?

    I want the hand tool to be the default tool. The select tool is very annoying. This is a recent change - even last week the default tool was whatever tool I had used last. Now the select tool is always selected which is very frustrating. How do I set the hand tool to be the default tool in Acrobat X? I am running Acrobat Pro 10.1.4 on Windows 7.

    I can see that it would be frustrating that you can restart PS with most last used tools, but not the Move tool.  But I just checked and that does indeed seem to be the case.  The obvious question is why you would like to have the Move tool selected when opening PS, and is there another route to achieve your ultimate objective?

  • How to restrict reversal of Goods issue against production order.

    Dear All,
    How to restrict reversal of Goods issue against production order if production order status is CNF or DLV.
    i want that user can not reverse the goods issued against production order, if they want to do so, then user has to reverse the GRN and reverse the GI then only.
    Please suggest the solution.
    Regards,
    Sandeep Dhruve

    Hy Sandeep,
    You have to use User Exit for this.
    The following enhancement is available for production orders:
    o   CCOWB001    User exit for modifying menu entries
    You can use this function module to deactivate menu entries or
    functions. The locked functions can then no longer be executed by the
    user.
    The enhancement CCOWB001 contains the following components:
    Function exit
    o   EXIT_SAPLCOWB_001   Good movement: Deaktivate functions
          Display documentation
    Regards,
    Dhaval
    Edited by: Dhaval Choksi on Aug 22, 2008 3:01 PM

  • How can i secure the mail application against my friends

    Hi, how can i secure the mail application against my friends, when they use the ipad for surfing ?
    I want to block the mailapplication with the number code, the ipad already provides for some app´s, but for mail, it doesnt work :-(

    thank you for the answer, i cant understand, why apple wont make this possible for the build in apps. For some it is working (Safari, Appstore, etc.... ) but for mail not. Why ?  This cant be a technical problem.....
    how solve other people this problem, when their ipad is walking around the table for surfing ?

  • How can i use a hand off betveen ipad and iphone

    HOw can i use a hand off betveen ipad and iphone?

    The following has instructions: Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support

  • [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

  • Im a vine user and was wanting to know how to vine with no hands so i added a gesture to use on vine and now the gesture froze on the screen and i cant control my phone anymore. Its a blue circle and i want to know how to get rid of it.

    Im a vine user and was wanting to know how to vine with no hands so i added a gesture to use on vine and now the gesture froze on the screen and i cant control my phone anymore. Its a blue circle and i want to know how to get rid of it.

    never mind it finally went away

  • ITunes:  I just redeemed a gift card in iTunes and then rented a movie.  I want it charged to the gift card but think that it was charged to my credit card.  How do I ensure the charges are against the gift card?

    iTunes:  I just redeemed a gift card in iTunes and then rented a movie.  I want it charged to the gift card but think that it was charged to my credit card.  How do I ensure the charges are against the gift card?

    I took this straight from the help menu.
    You need to set up an Apple ID for use with the iTunes Store before you can redeem anything in the iTunes Store. You don’t need to enter credit card information to redeem only the amount of a gift certificate or card.
    Hide 
    Use an iTunes allowance, gift certificate, or iTunes Gift Card
      If you aren’t already signed in to the iTunes Store, choose Store > Sign In, or click Sign In at the top of the iTunes Store window. 
      Below Quick Links, click Redeem, and follow the onscreen instructions.
    The amount in your account appears to the left of your account name. When you click the Buy button to make purchases, the amount changes to show how much money remains in your account.
    You can use a gift certificate only in the iTunes Store for the same country in which the certificate was purchased.

  • How can I protect a DAQ-Input against over-voltage ?

    I have a NI 4472 DAQ together with NI 2501 multiplexer. How can I protect the input ports against over-voltage ?

    You could use some zener diodes or varistors. The 2501 and the 4471 only provide a voltage range of 10 Volts. If voltage is of concern the 445x provide a voltage range of 42 volts and the 2503 has a voltage range of 30 volts. This would allow for more lenient voltage variations.

  • Hi, how/where can I file a complain against one premium re-seller here in the philippines?

    hi, how/where can I file a complaint against one premium re-seller here in the philippines?
    I was really ****** off on how they mishandled my warranty problem, they really wasted a lot of my time.

    You can try calling the Phillipines support number:
    http://support.apple.com/kb/HE57
    and asking to speak with someone on Customer Relations. If you haven't discussed the issue with the owner or manager of the reseller, though, start there first.
    Regards.

Maybe you are looking for

  • Can i install software for PowerBook g4 on an Imac?

    I have an iMac with an operating system OS X 10.2 and a PowerBook g4 with an operating system Os X 10.3.3. Can I use the PowerBook g4 software install dvds on my iMac to update the operating system? Will it erase all my documents etc. if I do? If I c

  • Re-installing OS... but how?

    I went to the Apple store to have them help me reinstall my OS (Snow Leopard Server) on my new Mac Mini. They showed me how to wipe it clean, but then sent me on my way as there was nothing else they could do without charging me. So, now I really rea

  • Cannot Get USB Slot to Work

    I have a 2011 MacBook Pro. All I remember doing was accidently unplugging my Wacom 4 Drawing tablet. (I am really thinking about getting one of those Wireless ones... hopefully that's provide a bit more comfort.) Anyways.  I go to plug it back in as

  • Can't Sync Photos To My Ipod!!!

    I HAVE A 30 GB IPOD AND WHEN I SYNC MUSIC ON TO MY IPOD IT LETS ME...BUT IT WON'T LET ME SYNC ANY MORE PHOTOS ON TO IT. I KNOW I HAVE A BUNCH OF SPACE LEFT ON MY IPOD SO THATS NOT THE PROBLEM BUT I GUESS THIS ERROR POP-UP " THE IPOD "IPOD" CANNOT BE

  • I'm so bummed :(

    Got my new iMac in today (20" 2.4Ghz, 1GB ram). Get it set up on it's desk and turn it on.... no video !!!!! It made the start up chime and everything but no video. So I called apple tech support and to make a long story short spent 2 HOURS on the ph