[SOLVED] repo-add replaces newer version package with old ones

Say I have two versions of nspr.
$ ls -1 nspr*.pkg.tar.xz
nspr-4.10-2-x86_64.pkg.tar.xz
nspr-4.9.6-1-x86_64.pkg.tar.xz
When I run repo-add on both of them, version 4.9.6 will be the one remaining in the database.
$ repo-add custom.db.tar.gz nspr*.pkg.tar.xz
==> Extracting database to a temporary location...
==> Adding package 'nspr-4.10-2-x86_64.pkg.tar.xz'
-> Computing checksums...
-> Removing existing entry 'nspr-4.9.6-1'...
-> Creating 'desc' db entry...
-> Creating 'depends' db entry...
==> Adding package 'nspr-4.9.6-1-x86_64.pkg.tar.xz'
-> Computing checksums...
-> Removing existing entry 'nspr-4.10-2'...
-> Creating 'desc' db entry...
-> Creating 'depends' db entry...
==> Creating updated database file 'custom.db.tar.gz'
I think here the natural order should be used, something like
$ repo-add custom.db.tar.gz $(ls -v nspr*.pkg.tar.xz)
as this is the expected behaviour from most users.
Last edited by luran (2013-10-07 23:43:21)

karol wrote:When only one version of a package will ever be present in the db, why try adding more? Just pass the version you want. You can use 'ls -v' if you prefer, but I think it's the shell's interpretation of the wildcard and not repo-add to blame.
Thanks for your reply. Now I agree repo-add should just process the files according to the order given by the shell.
To anwser your question, I need to make a local repository regularly to be shared with my other machine, because I have a very limited Internet quota and the sharing roughly halves the downloads. Usally I just use the wildcard for all the packages in the cache, and it works fine as long as the package version does not jump to 10+ like the above example. 'ls -v' will do the job for me. Cleaning the old packages could be another option, but occasionally I need to revert some package back to an old version.

Similar Messages

  • LabVIEW2009: How to replace new Icon Editor with old one?

    Colleagues,
    I really don't like the new icon editor introduced in LabVIEW 2009:
    That was nice attempt to make "embedded Photoshop" with lot of features:
    But I really don't like it, because:
    - it opened EVERY TIME on the RIGHT monitor (I have three monitors, and primary monitor in the middle) 
    - it takes lot of time for launch (old icon editor was started momentally)
    - from usability point of view - it was wrong to place tools on the right side. Commonly they located on the left side (and only in old icon editor, but also in imageprocessing software like Adobe Photoshop). Also front panel UI design... hmmm... this can be better...
    - some bugs or changed functionality (for example - select ROI, then press <Del> button - nothing happened)
    etc...
    Is it possible to replace it with old one:
    Ideal solution will be - simple switch between both editors (some introduced features are not so bad).
    Thanks in advance, 
    Andrey.
    Message Edited by Andrey Dmitriev on 01-29-2010 11:00 AM
    Solved!
    Go to Solution.

    Go into <LabVIEW>\Resource\Plugins and rename lv_icon.vi. This is the plugin that's called when you invoke the icon editor, and if it's not there, LV reverts to the built-in editor (at least today. I'm not sure how many versions ahead they will keep the code).
    You should note that the editor is open source, so you can go in and change what you want (or save yourself time and use the changes others have made, such as PJM's thread here. You may also want to look at the other discussions in that group).
    Try to take over the world!

  • I have to use two different versions of Firefox for two different employers - How to install new version without losing old one?

    One employer requires that I use Firefox 3. Another requires that I use the newest version. How do I install a new version Firefox to a different path without over-writing the old version?

    The easiest way it to have one version be a Firefox Portable installation. The Portable installation is self-contained and won't affect your "regular" Firefox installation.<br />
    http://portableapps.com/apps/internet/firefox_portable
    Otherwise you need to set up a Profile specifically for the 2nd version and make sure the correct Profile is launched with each version. <br />
    [http://support.mozilla.com/en-US/kb/Managing+Profiles] <br />
    http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    Overall you are probably better off replacing your current Firefox 3.6.25 version with the Portable Apps version - http://portableapps.com/apps/internet/firefox_portable/localization#legacy36 - and install Firefox 9.0.1 as your "regular" installation.

  • "Combine" New Apple ID with old one?

    As a fan of Apple and their products i'd thought, that i have to sign up on the Apple Support Communities, so yeah, i did it and .. "here i 'am". As i am German, i have to say sorry, if i use bad English. Complaints please to my former English teacher ^^
    Just let me say at this moment "A Big Hello" to you!
    My first discussion is thought to be a question: Can i "combine" my new Apple ID with my old one?
    > Till recently, the Apple ID i used was the one of my dad (so his eMail-adress of course). Now i've created my own Apple ID with my own eMail-adress. It would be great, if i could "transfer" the purchases, i've done with the former Apple ID (my dad's one) to my Apple ID. So, i'd have a better survey over all my purchases too, because i don't have to think "What apps have i bought with the Apple ID of my dad, which one's with my own Apple ID" and so on..
    Is there a chance to do this?
    Oh, and while i talk about "combine": is is possible, to combine "Purchases" and "Purchases with iPhone" in iTunes? I mean, that ALL purchases (the ones i've done via iPhone too) are listed under "Purchases" and the "Purchases with iPhone" could be shown off?

    Haha! Thanks.
    Aw, really? I was actually thinking about your discussion question because I was wanting to merge my new iCloud account into my same old iTunes account so I wouldn't have to deal with two separate ones...
    Excellent! That'd be very great! Let's hope that comes through. I'll be keeping my eye out for that one.
    Haha! Is that true? I feel stupid because I speak English. Since I don't know any other languages fully... So I feel like anyone could understand me if I were in a different country without challenge. Which is good if I want to get my point across, but I just feel like it'd be nice to speak the natural language, ya know?

  • Feedback on corporate decision to include documentation for new version together with old

    Re:
    ...That is the intent for the documentation for CS6: that it be in the same document as CS5 and CS5.1...
    Every single Adobe executive up the chain of command who is even partially responsible for that astonishing, feeble-minded decision henceforth deserves the unqualifed epithet of idiot.
    Waaaay beyond angry!   
    We know the engineers and developers are not among that group of morons.  I'm referencing the Adobe corporate, bureaucratic zombies.
    No comment or response is expected as any explanation would be as futile as inherently incredible.

    A "What's new" in the front of an old manual does not make a new manual. What it does make is a very unprofessional mess, lacking contents, index, and organization. This is pathetic.

  • HT201320 when I go to do updates the window pops up apple id password I no longer have this email Ive tried to add a new email but the old one is still showing up. I don't know where or what to do now, can you help?

    needing help to change apple id email address. I went in settings and changed the email but the new one isn't showing up Ive called different support numbers and I changed email but it still shows up.

    If you are talking about app updates, these are permanently tied to the Apple ID used to purchase the app, regardless of the ID on your phone in Settings>Store.  The only way to stop the prompt for your older ID would be to delete these apps from your phone.  The ID in Settings>Store is the one being used for current purchases, not updates of apps purchased using a different ID.

  • Have iTunes version 10 .3 but do not understand cloud in iTunes 11.03 can someone explain it and also how do you find duplicates in new version and will the new version sync with my iPod Classic which I have had for 4 years

    I have iTunes version 10.03 which I love but my iPad Apple mini has iOS 7 but I don't understand the new iTunes what is the cloud shown next to the music and how can I find duplicates can anyone help me navigate the new iTunes and will the new version sync with my iPod Classic which is 4 years old

    The main differences between iTunes 11 and earlier versions are the loss of coverflow and ability to have multiple windows open.
    In Windows, you can restore much of the look & feel of iTunes 10.7 with these shortcuts:
    ALT to temporarily display the menu bar
    CTRL+B to show or hide the menu bar
    CTRL+S to show or hide the sidebar
    CTRL+/ to show or hide the status bar (won't hide for me on Win XP)
    Click the magnifying glass top right and untick Search Entire Library to restore the old search behaviour
    Use View > Hide <Media Kind> in the cloud or Edit > Preferences > Store and untick Show iTunes in the cloud purchases to hide the cloud items. The second method eliminates the cloud status column (and may let iTunes start up more quickly)
    If you don't like having different coloured background & text in the Album (Grid) view use Edit > Preferences > General and untick Use custom colours for open albums, movies, etc.
    With iTunes 11.0.3 and later you can enable artwork in the Songs view from View > Show View Options (CTRL+J) making it more like the old Album List view
    View > Show View Options (CTRL+J) also contains options to change the sorting of grid based views
    The cloud icons give you access to stream or download any qualifying past purchases that you don't currently have downloaded to the library.
    Regarding duplicates, things haven't really changed. Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin. Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    Yes, iTunes 11 will support your iPod classic.
    tt2

  • How to use BAPI to add a new version for a claim number in WTY transaction.

    How to use BAPI to add a new version for a claim number in WTY transaction.
    I am using  function module " BAPI_WARRANTYCLAIM_ADD_VERSION ".
    It needs to copy all contents of previous version to a new version.
    While doing so i am unable to copy fields like valic valoc etc. Any ways by which  i can copy this values.
    WTY will update PNWTYH , PNWTYV and PVWTY tables.
    Thanking you,
    Lokesh.

    Hi Vishnu,
    You can do that through EEWB. Please go through SAP Note 484597. You would get the details of using Easy Enhancement Work bench.
    Rewards point if you think this info is useful
    Regards,
    Dipender Singh

  • I have one playlist on iphone4. how can i add new playlist without deleting old one. i do not have old playlist in itunes any more.

    I have one playlist on iphone4. how can i add new playlist without deleting old one. i do not have old playlist in itunes any more.When i try to sync iphone with itunes it says that this action will remove my old playlist and all songs.

    "it says that this action will remove my old playlist and all songs."
    Are you connecting to a different iTunes library than you normally connect to?  That will erase the songs and playlists since the iPhone can't be connected to multiple libraries even if it is in manual sync mode.
    If you no longer have access to the original library that your iPhone calls 'home', then the only way to save the playlist (and the songs on your iPhone) would be to use a 3rd party application to extract your iPhone contents to this new iTunes library you're trying to connect to.

  • Hi, I need to activate my Adobe CS3 on a new computer because my old one died and I'm having difficulty. Tried the normal registration way and then logged in with my Adobe ID and can see the software and activation code already registered. How to get it o

    Hi, I need to activate my Adobe CS3 on a new computer because my old one died and I'm having difficulty. Tried the normal registration way and then logged in with my Adobe ID and can see the software and activation code already registered. How to get it on my computer registered?

    If your two activation are in use you need to call Adobe. Install CS3 to to point of activation and call Adobe at that point.  They have help me in cases like your My Disk crashed and I replaced it. Could not deactivate the crash activation.  I done that twice over the years I've been using  PS for around 20 years
    To see your key you need to click on the product in your Adobe products and services page.

  • I can't get my ipod touch to sync with my new computer. My old one died. I downloaded itunes and installed music but the ipod will not sync with this new computer. What do I do?

    I can't get my ipod touch to sync with my new computer. My old one died. I downloaded itunes and installed music but the ipod will not sync with this new computer. What do I do?

    You can only sync with one iTunes library/computer. To switch:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • If i have already logged in my iTunes with my iPod and plugged that in, but now i have a new iPod and I want to plug that in to my laptop how would i do that with out losing anything on my new iPod and my old one. Both my ipods are on different accounts?

    If i have already logged in my iTunes with my iPod and plugged that in, but now i have a new iPod and I want to plug that in to my laptop how would i do that with out losing anything on my new iPod and my old one. Both my ipods are on different accounts?

    Nothing special. See:
    How to Set Up Two iTunes Accounts on One Computer | Chron.com
    iTunes: How to share music between different accounts on a single computer

  • Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Thank you.  The old one will stay reported?

  • I cannot locate my cs6 redemption code and I just purchased a new computer because my old one doesn't work anymore. How can I get my photoshop on this computer? All my other products are registerd with a serial number

    I cannot locate my cs6 redemption code and I just purchased a new computer because my old one doesn't work anymore. How can I get my photoshop on this computer? All my other products are registerd with a serial number

    The activation servers for CS and CS2 stopped working and were taken down. You'll need to take a look at this link for your issue: https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml
    Benjamin

  • I have an iPod nano 2nd generation and I want to download the songs I have on it to my new computer, as my old one crashed with all the songs on it.  I also got a new iPod and would like to transfer the old songs onto it. How do I do this?

    I have an iPod nano 2nd generation and I want to download the songs I have on it to my new computer, as my old one crashed with all the songs on it.  I also got a new iPod and would like to transfer the old songs onto it. How do I do this?

    Ok so sorry for clogging the community!! I figured it out - you have to copy your videos into itunes manually. I did that, synched and all good!

Maybe you are looking for

  • Ipod nano dim screen?

    Okay, I had a 4th generation iPod nano for about two years, and then I got the fourth generation iPod touch. My brother had the iPod nano after me, but he left it in his pocket on accident and it went through the washer. I did the whole rice for 24 h

  • Flash player 11.0 flickers/doesn't draw whole frames

    Hello, I'm currently running Flash Player 11.0.1.152 on Arch Linux 64-bit, with nVidia driver 285.05.09. I'm coming across a lot of Flash videos where terrible flickering occurs. The frame rate is very good but it seems like some of the frames themse

  • Read from a file(integers)

    I have a data.txt file like: 40 2 4 5 How can I read those four integers from the file? Thanks

  • Where can i find the V25 producer tools

    Hi, don't know why but i cannot find the folio producer tools for the v25. Can anyone send me the link? Thanks

  • How's is the career in working with forms and reports?

    hello my dear oracle experts. i am sandeep. i am a fresher who got job in small company should be working on forms and reports. how will be the career growth in working on this profile. how can i move on to the ERP side?? can anybody suggest me some