Partial clearing of pacman cache

Is there a way of partially clearing the cache of old packages. I'll explain, every now and then I have to downgrade a package, due to some sort of issue, (usually wine or ati packages). Down grading to the previous version is usually good enough, but sometimes I need to go back further. So that I can do this I don't clear the cache to frequently.
Now I know that doing a "pacman -Sc" will remove all the old packages upto the currently installed one, and a "pacman -Scc" removes everything. But it would be nice (for me anyway) if you could add a parameter to the "c" to leave that many versions of a package in the cache
example "pacman -Sc=3" this would leave the 3 latest versions of packages alone, but clear out anything older. If there wasn't 3 versions of a package, in the cache, then it would be left alone.
People could keep the number of copies that they feel comfortable with, or not specify a number and things would work as they currently do.
Does anyone know of a way to do a partial clearing alongs the lines discribed?
Thanks

test1000 wrote:
you could always go into /var/cache/pacman/pkg/ and delete the packages you don't need.
posting your suggestion to the bugzilla might yield better chances of it being implemented as a feature.
Thanks for the input, I was just asking to see if anyone new of a way to achieve this currently, and also to see if it other thought it would be useful.

Similar Messages

  • Clearcache - another script to selectively clear your pacman cache.

    https://aur.archlinux.org/packages.php?ID=50498
    I learned there are a number of scripts designed to do the same thing after I
    wrote the basic framework, but I went ahead and finished it anyway.
    clearcache has a number of features I haven't seen elsewhere,
    usage: clearcache [options] [targets]
    Options:
      -h, --help          display this help menu
      -d, --dry           dry run, simply list targets instead of removing
      -q, --quiet         only prints filenames for -d/--dry or -l/--list-targets
      -f, --force         force removal of package files
      -i, --ignore <pkg>  specify package(s) to ignore. this can be a comma
                          separated list, or '-' reads a list from stdin, one
                          per line. can be used more than once.
      -k, --keep <num>    specify number of old package files to keep. by default,
                          clearcache will keep the two most recent versions.
      -l, --list-targets  list targets to remove, using PAGER/less, before
                          removing. may not be used with -d/--dry
      -t, --threads <num> use <num> threads. the default value is 5. using a
                          large number will not gain you much, and is not
                          recommended, but there is no hard limit.
      -u, --uninstalled   remove all package files for packages that are not
                          currently installed, while still keeping the
                          specified number of old files for installed packages
      -v, --verbose       output more
      there MUST be a space between the option and its argument.
    Targets:
      targets are package names, as you would specify them to pacman.
      if targets are specified, only package files belonging to them will be
      removed. if no targets are specified, all packages except for thos
      specified to be ignored will be removed.
    It now uses the .PKGINFO file within the package itself, in order to know which
    package it belongs to (Thanks again brisbin).  This eliminates any issues with
    parsing the name from the version info, in the filename.
    Obviously using alpm or such would be faster, but this was a quick project.  I
    wrote a short snippet for myself, and decided to extend it.
    Anyway, hope someone else finds this useful, let me know if you find any bugs,
    or have any feature reqs.
    Potential issues:
      As seems to be the most common issue with scripts like this, it assumes the
      most recent package in the cache is the one installed, or the one you would
      want to keep.  I'm considering parsing pacman output to compare the versions,
      at least as an option.
    EDIT:
      Now with multithreading!  It has taken about 10% off the execution time on a single
      core netbook, and gets faster on better processors.  If nothing else, it was a good
      experiment, but I think it turned out rather well.
    Last edited by freak (2011-07-07 01:56:45)

    https://aur.archlinux.org/packages.php?ID=50498
    I learned there are a number of scripts designed to do the same thing after I
    wrote the basic framework, but I went ahead and finished it anyway.
    clearcache has a number of features I haven't seen elsewhere,
    usage: clearcache [options] [targets]
    Options:
      -h, --help          display this help menu
      -d, --dry           dry run, simply list targets instead of removing
      -q, --quiet         only prints filenames for -d/--dry or -l/--list-targets
      -f, --force         force removal of package files
      -i, --ignore <pkg>  specify package(s) to ignore. this can be a comma
                          separated list, or '-' reads a list from stdin, one
                          per line. can be used more than once.
      -k, --keep <num>    specify number of old package files to keep. by default,
                          clearcache will keep the two most recent versions.
      -l, --list-targets  list targets to remove, using PAGER/less, before
                          removing. may not be used with -d/--dry
      -t, --threads <num> use <num> threads. the default value is 5. using a
                          large number will not gain you much, and is not
                          recommended, but there is no hard limit.
      -u, --uninstalled   remove all package files for packages that are not
                          currently installed, while still keeping the
                          specified number of old files for installed packages
      -v, --verbose       output more
      there MUST be a space between the option and its argument.
    Targets:
      targets are package names, as you would specify them to pacman.
      if targets are specified, only package files belonging to them will be
      removed. if no targets are specified, all packages except for thos
      specified to be ignored will be removed.
    It now uses the .PKGINFO file within the package itself, in order to know which
    package it belongs to (Thanks again brisbin).  This eliminates any issues with
    parsing the name from the version info, in the filename.
    Obviously using alpm or such would be faster, but this was a quick project.  I
    wrote a short snippet for myself, and decided to extend it.
    Anyway, hope someone else finds this useful, let me know if you find any bugs,
    or have any feature reqs.
    Potential issues:
      As seems to be the most common issue with scripts like this, it assumes the
      most recent package in the cache is the one installed, or the one you would
      want to keep.  I'm considering parsing pacman output to compare the versions,
      at least as an option.
    EDIT:
      Now with multithreading!  It has taken about 10% off the execution time on a single
      core netbook, and gets faster on better processors.  If nothing else, it was a good
      experiment, but I think it turned out rather well.
    Last edited by freak (2011-07-07 01:56:45)

  • FI-FM: Partial clearing on account assignment (tcode fmfg_aapay)-No open items found

    Hello!
    We have activated business function PSM_USFED_PPAP3, then :
    -  Federal Government Functionality - activated ;
    - settings in Financial Accounting (new)---> Basic Settings --> Ledgers --> Partial clearing on account assignment:
                   - Activate partial clearing by acc.assignment:   Check
                   - Maintain relevant ledger for Split view : no entries maintained (there is only one ledger "FM", which is the leading ledger, no special purpose ledgers)
                   - Set supported document types: KR
                   - Set payment block: B
    Other settings:
         - FM activated, update profile 000101, document splitting (method 00...012), splitting characteristics: vobelnr, knbelnr, fipos, geber, gsber, fkber;
    document type KR : business transaction 0300 (vendor invoice).
    When we use tcode FMFG_AAPAY no open items are found (message FMFG_AAPAY009), even though there is a vendor invoice posted (tcode FB60, document type KR). The invoice is displayed in FBL1N as an open item and it is split according to the splitting characteristics (e.g. table fagl_splinfo is showing the split vendor items).
    Can you, please, explain why there are no open items found in FMFG_AAPAY?
    Thank you!

    Dear all,
    I am closing this issue since I got the solution apart from the mentioned above.
    There is no need to change the Document Type since that will only change the Document type for e.g. from KZ to ZR, nothing will happen in the accounting entry.
    Solution was there in the "Posting rule" which i defined for making Cheque Payment.
    There are options of "Posting Type" - 1 which is for "Post to G/L Account" - In this case, system will Post the following entry Dr. Outgoing Bank Account & Cr. Main Bank Account without looking for any "Open Item".
    Posting Type" - 4 is for "Clear Debit G/L Account", menans that if you are having "Open Items" and you want to clear those then only use this posting key.
    While testing I had not posted any payment to vendor in Bank Outgoing Account hence no question of having "Open Items" in Bank Outgoing Account. And I had made the selection of "Posting Type" - 4, which require "Open Items" for direct clearing, hence was getting the subject error.
    This is for everybodies information.
    Thanks & Regards,
    Shridhar Sawant
    FICO

  • FI Partially cleared document which table get saved

    Hi,
    I want to know in which table partially cleared documents regarding G/L , vendor and customer is saved?
    Thanks
    Parag

    Hi,
    Initially the original document posted will be in the table BSIS ( eg for 12000). When a partial payment made against the original document , eg here (7000) also will be posted in BSIS, since it is only partially cleared. Now when we pay the balance ( here 5000) , for the same document , all the 3 documents wiill be moved to the table BSAS eg, the 12000, 7000, 5000, since it is fully cleared.
    Regards,
    Smart

  • Unable to load updates of library project in browser until clear my browser cache

    hi,
    i am using a lib project for my main project with the setting as 'Run time Shared Library' , i am not getting any updates from the lib until i clear my web cache and then load it again.
    Please help !
    thanks
    vishal

    In many cases you can append a timestamp to the URL to force the browser to reload. In some cases you may need to strip off the timestamp later to avoid messing up the url.

  • Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Partial Clearing

    Dears,
    I have a requirement from the business on clearing open item with partial payment and show only the balance left in FBL1N.
    We pay a down payment of USD 100 on 01st Jul, 2014, and get an invoice on 1st Aug for USD 200  for 30 days, effectively the invoice is due on 1st sep, I apply the advance to clear invoice on 1st sep. The issue is in FBL1N the outstanding shows USD 100 with two open items (USD 100 pmt & USD 200 as Invoice) and if subtotal with inv ref, then the subtotal shows the net of both line items. I would like to know if we can show only one line item with original document with net amount due (200-100). It gives us the real picture on outstanding against each line items.
    Thanks,
    Lokesh

    Hi Lokesh,
    If you do partial clearing then system will show two open items i.e.invoice document and payment document. This is SAP standard behaviour.
    If you want display one item with net amount. Then in this case you have do residual clearing. At the time of clearing, select invoice document & payment document and click on res.items and here you have to double click on invoice document, system will automatically show the balance amount,simulate and save the document.  In FBL1N report, it will show only one open item with net amount.
    Regards,
    Mukthar

  • Unable to clear $(CFBundleIdentifier) from cache

    Unable to clear $(CFBundleIdentifier) from cache.  Goes to trash but can't be emptied even after restart, says it's in use.  What is it and how do I get rid of it.

    It's normal. Leave it alone.

  • Item Interest Calculation for partially cleared items

    Hi
    We need to do interest calculation on Customer Line Items. The T Code we are using is FINT. We have set an interest indicator for Item Interest Calculation, with Interest Calculation based on Items Cleared with Payments. The requirement is that Interest should be calculated on even partially cleared items. Suppose a customer invoice is generated on 1.1.2009 for INR 100000 and becomes due for payment on 30.1.2009. Now on 10.2.2009, a partial payment is recieved against this invoice for INR 30000. System should calculate interest on INR 30000 for 11 days. Now again on 20.2.2009, remaining payment of INR 70000 is recieved. In such a case, interest should be calculated on INR 70000 for 21 days @ 1.25% PM. In the current configuration, when we define that system should calculate interest on Open Items cleared with payments, system calculates interest on INR 100000 for 1.25% for 21 days. Pls suggest.
    Regards
    Sanil Bhandari

    Hi u can check all below steps with specific fields i thought it is working perfectly check it.
    1. Define Interest Calculation Types
    here u can enter int rate type as a "S" Balance interest calculation
    2. Prepare Account Balance Interest Calculation
    here u can enter int calculation frequency means monthly or quarterly etc. calander type G, select balance plu int check box
    3. Define Reference Interest Rates
    Here u can enter date currency
    4.  Define Time-Dependent Terms
    here u can enter currency effective from date sequential number term (Debit interest: balance interest calc. or Credit interest: balance interest calc.) referance int rate enter before step what u r defined that one u can enter here.
    5. Enter Interest Values
    here u can enter interest rate for that referance int type
    6. Prepare G/L Account Balance Interest Calculation
    Here u can enter ur g/l accounts
    0001            Interest received (int received a/c)
    0002            Interest paid      (int paid a/c)
    0011            Pt vl.min.int.earned(int received a/c)
    0012            Pst vl.min.int.paid(int paid a/c)
    0013            Pst vl.dt.int.earned(int received a/c)
    0014            Past val.dt.int.paid(int paid a/c)
    0015            Calc.per.int.earned(int received a/c)
    0016            Calc.period int.paid(int paid a/c)
    1000            G/L account (earned)(Loan giving a/c)
    2000            G/L account (paid) (Loan taking a/c)
    after that u can post transaction  execute ur transaction code i thought it is helpful for u
    Regards,
    Nauma.

  • Need BAPI or custom report for the Vendor partial clearing like in F-44

    Hi exports,
    My requirement is for creating a Z-Report for Vendor partial clearing  like it happening in t-code F-44.
    But I didn't find any BAPI or any report for doing partial vendor clearing inside my report.
    Kindly suggest me any BAPI or  some code such that I can able to clear those open items from my report.
    Or suggest me any process such that i can achieve this.
    Thanking you
    Pravasini

    Hi, Sagar:
    Nice to see your thread here
    No matter what kind of transactions you are using, finally, there will be a document posted in General Ledger Accounting, which is what you want. So to read the result, you can always try function module, like FI_DOCUMENT_READ.
    Hope it will help.
    Best Regards, Lawrence

  • The Problem about clearing the system cache

    Hi, there!
    I'm trying to draw a lot of image in iPhone programming.
    I used [UIImage imageNamed].
    but it doesn't clear immediately the system cache.
    At last it occurs the out of memory.
    So I thought using imageWithContentsOfFile, but it works very slowly.
    Does anybody know how to clear the system cache?

    Read Position.flx can execute much faster than 5 ms but as it reads a register that is updated every 5 ms on the board, it reads the same value multiple times.
    To get around this problem there are two methods:
    Buffered High-Speed-Capturing (HSC)
    With buffered HSC the board stores a position value in it's onboard buffer each time a trigger occurrs on the axis' trigger input. HSC allows a trigger rate of about 2 kHz. That means, you can store a position value every 500 µs. Please refer to the HSC examples. You may have to look into the buffered breakpoint examples to learn how to use a buffer, as there doesn't seem to be a buffered HSC example available. Please note that you need an external trigger-signal (e. g. from a counter of a DAQ board). Please note that the amount of position data that you can acquire in a single shot is limited to about 16.000 values.
    Buffered position measurement with additional plugin-board
    If you don't have a device that allows you to generate a repetitive trigger signal as required in method 1.), you will have to use an additional board, e. g. a PCI-6601. This board provides four counter/timers. You could either use this board to generate the trigger signal or you could use it to do the position capturing itself. A PCI-6601 (or an M-Series board) provides can run a buffered position acquisition with a rate of several hundred kHz and with virtually no limitation to the amount of data to be stored. You could even route the encoder signals from your 7350 to the PCI-6601 by using an internal RTSI cable (no external wiring required).
    I hope this helps,
    Jochen Klier
    National Instruments

  • How To Clear Mapviewer Tile Cache

    I am running a standalone version of Mapviewer using Weblogic Server.
    Weblogic and Mapviewer are running on a linux server with CentOS 5.8 64bit.
    - MapViewer Version: Ver11_1_1_7_1_B130516
    - Weblogic Server 10.3.6
    I am using Mapbuilder installed on a Win7 64bit client.
    - Mapbuilder Build: Ver11_1_1_7_1_B130516
    My datasource is an Oracle 11.2.0.3 database running on a linux server with CentOS 5.8 64bit.
    I am using the new HTML5 JavaScript mapping API to render my map.  I am using any one of the following browsers:
    IE10 (v10.0.9200.16635)
    Firefox (v23.0)
    Chrome (v28.0.1500.95 m
    I have created the following Mapbuilder objects:
    Geometry Theme: SRA_SUITE304_F1_ROOM
    - for the label styling rules, I have set the Label Function = 1, so that labels will be displayed for the objects
    Base Map: SRA_ALL
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
          <theme name="SRA_SUITE304_F1_ROOM"/>
      </map_definition>
    Tile Layer: SRA_ALL
    <map_tile_layer name="SRA_ALL" image_format="PNG" http_header_expires="168.0" concurrent_fetching_threads="3">
         <internal_map_source data_source="ICLOGIT1" base_map="SRA_ALL" bgcolor="#ccccff"/>
         <coordinate_system srid="4326" minX="-74.54" minY="39.407" maxX="-74.53" maxY="39.41"/>
         <tile_image width="256" height="256"/>
         <zoom_levels levels="10" min_scale="100.0" max_scale="1600.0" min_tile_width="6.097560975612876E-5" min_tile_height="9.090909090913742E-4">
              <zoom_level level="0" name="level0" description="" scale="1600.0" tile_width="9.090909090913742E-4" tile_height="9.090909090913742E-4"/>
              <zoom_level level="1" name="level1" description="" scale="1175.0" tile_width="7.142857142860797E-4" tile_height="7.142857142860797E-4"/>
              <zoom_level level="2" name="level2" description="" scale="864.0" tile_width="5.263157894739535E-4" tile_height="5.263157894739535E-4"/>
              <zoom_level level="3" name="level3" description="" scale="634.0" tile_width="3.846153846155814E-4" tile_height="3.846153846155814E-4"/>
              <zoom_level level="4" name="level4" description="" scale="466.0" tile_width="2.7777777777791986E-4" tile_height="2.7777777777791986E-4"/>
              <zoom_level level="5" name="level5" description="" scale="342.0" tile_width="2.0833333333343992E-4" tile_height="2.0833333333343992E-4"/>
              <zoom_level level="6" name="level6" description="" scale="251.0" tile_width="1.5151515151522904E-4" tile_height="1.5151515151522904E-4"/>
              <zoom_level level="7" name="level7" description="" scale="185.0" tile_width="1.1235955056185523E-4" tile_height="1.1235955056185523E-4"/>
              <zoom_level level="8" name="level8" description="" scale="136.0" tile_width="8.264462809921583E-5" tile_height="8.264462809921583E-5"/>
              <zoom_level level="9" name="level9" description="" scale="100.0" tile_width="6.097560975612876E-5" tile_height="6.097560975612876E-5"/>
       </zoom_levels>
    </map_tile_layer>
    I am using the following HTML to display the map using the Tile Layer SRA_ALL:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>SRA2 - Map 01 - 10 Zoom Levels</title>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <script type='text/javascript' src='http://xxxx.xxxx.com:7002/mapviewer/jslib/v2/oraclemapsv2.js'></script>
    <style type= 'text/css '>body {cursor:default;}</style>
    <script language="JavaScript" type="text/javascript">
    var baseURL="http://xxxx.xxxx.com:7002/mapviewer";  // location of mapviewer
        function showMap()
            var map = new OM.Map(
            document.getElementById('map'),
                mapviewerURL:baseURL
            var tileLayer2 = new OM.layer.TileLayer(
            "SRA_ALL",
                dataSource:"xxxx",
                tileLayer:"SRA_ALL"
            map.addLayer(tileLayer2) ;
            map.addScaleBar() ;
            map.addNavigationPanelBar() ;
            map.setMapCenter(new OM.geometry.Point(-74.537446,39.409008,4326) );
            map.setMapZoomLevel(3) ;
            map.init() ;
    </script>
    </head>
    <body onload="javascript:showMap()">
        <DIV id=map style="width:99%;height:99%"></DIV>
    </body>
    </html>
    This produces a correctly rendered map in my browsers, which displays the labels I expect.
    Next, I changed the Labeling Function on my Geometry Theme: SRA_SUITE304_F1_ROOM, setting it to -1, so that object labels would not be displayed.
    In Mapbuilder, I can preview the geometry theme, and it shows that no labels are displayed.
    Still in Mapbuilder, I can preview the base map that the geometry theme is assigned to, and the basemap also shows that no labels are displayed for that theme.
    I saved all my changes in Mapbuilder.
    However, when I view my map (using the same HTML code) in the browser, the map still shows the labels.
    I have tried all of the following:
    1) purging the geometry cache for the affected map datasource using the MapViewer Administration Console
    2) purging the browser cache
    3) restarting the mapviewer server
    4) restarting the entire supporting weblogic server
    None of these actions cause the map viewed in my browser to be updated to show the map without labels.
    Note: If I create a new Tile Layer using the same base map, my changes are visible in the browser map.
    What am I missing here?
    What cache do I need to clear so that my map is displayed correctly in my browser after I make changes to the underlying Mapbuilder objects?
    Thanks in advance for your help.

    Thanks.  That was the last key to the puzzle.
    Here are the steps I now follow to ensure that changes made to underlying MapBuilder objects are visible in the browser.
    Perform the following steps:
    1) Modify the object (style, theme, base map, tile layer) in MapBuilder, and save all changes.
    2) Using MapViewer Administration Console, Purge Cached Metadata for each affected datasource.
    3) On the MapViewer server, clear the Map Cache directory.  The location of the Map Cache directory is specified in the mapViewerConfig.xml file under the section "Map Cache Server Setting".
    e.g.
    cd <map cache dir>
    rm -rf *
    4) Clear the browser cache and temp files for the browser you are using (e.g. IE, Firefox, Chrome).  If you think you are not clearing the cache completely, then use the appropriate "private browsing" feature of the browser to view the map.  You should then be able to see the changes made to the map in the browser.

  • Clear portal navigation cache from java

    Hi,
    I've written a navigation connector service based on the example in the ep6 pdk. It works fine but if I make changes to its configuration so that some new navigation entries should appear/disappear, it may last up to 2 hours until they show up. I think the portal caches the navigation entries for each user. Is it possible to clear the nav cache  for certain/all users with a java statement?
    thanks in advance,
    Markus

    Hi,
    if you know what you're doing and what the consequences of programming against a not-public API are, you could do the following:
    CacheAccess cacheAccess = CacheAccess.getAccess("prt");
    cacheAccess.invalidate();
    build time dependency:
    compile against j2ee\cluster\dispatcher\bin\ext\com.sap.ip.basecomps\BaseComps.jar
    run time dependency:
    add the SharingReference value SAPJ2EE::library:com.sap.ip.basecomps to your portal component deployment descriptor (dist/PORTAL-INF/portalapp.xml)
    BR, Fabian

  • Bbc homepage not loading, even though I cleared cookis and cache. Any advice on how to sort this problem?

    I have FF version 4. The BBC home page will no longer load, though I can load other BBC pages such as BBC news. I don't know why it won't load and I just get a blank white page - t loads in safari fine. I have cleared cookies and cache but it makes no difference. Please advise on next steps for trying to sort.
    thanks

    Are of your purchases done under a single Apple ID/iTunes Account?  Perhaps this article can provide a resolution.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    B-rock

  • How to do partial clearing for noted items?

    Good day,
    One of our client's requirement is the partial clearing/reversal of noted items. When i access F-04 (Post with Clearing), the amount of the noted item once selected, is not reflected in the amount shown in the lower right part of the screen, thus i cannot create partial, residual or difference posting for such items. Are there any workarounds? or standard transaction which can address this requirement?
    Thanks.

    Good day,
    Thanks for the helpful answer.
    But does this mean that documents will just add up because instead of creating a partial clearing, we create another document? is there any way of linking these two documents? by use of reference or something? so that when the client views the documents, he will know the history of the documents?
    thanks. also, im assuming that for example the noted items are "cleared", we have to reverse all the documents created for that particular noted item?

Maybe you are looking for