Deleting removed packages from ABS

Over the course of the year, I have used sudo abs to keep a back up copy of my packages that were installed.  And of course some packages were removed via pacman, but their "ghost" is still in the /var/abs/ folder
Is there a way to delete from /var/abs/ packages that are no longer installed in my system?

Trilby wrote:
3xOSC wrote:I have used sudo abs to keep a back up copy of my packages that were installed.
And how did you do that?  Abs, by default, does not just get PKGBUILDs for packages you have installed, but for all packages in the repos (unless you specify a specific package on the command line).
EDIT: I'm not sure it's relevant, but abs does not help keep backups of anything - it just retrieves current PKGBUILDs (and .install files) for repo packages.  Packages are kept in /var/cache/pacman/pkg/ - but this has nothing to do with abs.
I did it by running sudo abs.
And you are correct, it does get PKGBUILDS for the packages, not all of them.
I thought what abs did was, take a look at the current version of the package of, say, ncmpcpp, and when you run sudo abs, it copies the PKGBUILD of the current version of ncmpcpp to /var/abs

Similar Messages

  • Can I legally remove packages from a JRE bundled with my Application

    Can anyone help me get clarification on whether or not I can remove packages from a JRE that I am bundling with my Java Desktop Application. The full JRE is 90+ megs, my application does not require all of that. It was my understanding that I could modify the JRE as long I left the copyright notifications in place and did not try to represent the JRE as something I created. The license agreement is vague, at best. I was looking for direction or legal statement that allows me to trim out unnecessary packages from a JRE that is bundled with my application.
    Thank you in advance for any input.

    The license agreement is vague, at best.http://java.sun.com/j2se/1.5.0/jre/README
    Java(TM) 2 Platform Standard Edition
    Runtime Environment
    Version 5.0
    =======================================================================
    Redistribution of the J2SE Runtime Environment
    =======================================================================
    NOTE - The license for this software does not allow the
    redistribution of beta and other pre-release versions.
    Subject to the terms and conditions of the Software License
    Agreement and the obligations, restrictions, and exceptions set
    forth below, You may reproduce and distribute the Software (and
    also portions of Software identified below as Redistributable),
    provided that:
    (a) you distribute the Software complete and unmodified and only
    bundled as part of Your applets and applications ("Programs"),

  • Remove package from Distribution Point

    I have been fighting with an OS deployment for the last day. The log was showing it was unable to find the package p0100001 which was my boot image. I eventually got it working as I failed to configure my boundary correctly. But it got me wondering...
    In SCCM 2007, it was pretty straight forward on how to remove packages from distribution points. But I still can't figure out how to remove a package, specifically a boot image, from a DP. I can view the distribution in the monitoring section and see the
    package successfully deployed, but what if I wanted to remove that boot image from the DP? How is this done. I'm sure it's staring me in the face, but I'm missing it. Thanks!

    I realize this is an old post, but I am dealing with the same issue regarding the removal of deployment package contents from Distribution Points.  After removing a Distribution Point from the Contents Locations tab on one of my Deployment Packages,
    how long does it take for the deployment package to be removed from the distribution point.  I have removed a large deployment package from a distribution point, but am not seeing any increase in the available free space.
    Any help would be appreciated.
    Muskie
    Muskie

  • How do I know who deleted a package from database

    HI
    Some one deleted a package from the database.
    is there any way to know , who did it and when?
    thanks

    Not unless you have auditing configured. I suggest you audit DDL: create, drop, alter, etc....
    HTH -- Mark D Powell --

  • Script to rebuild all installed packages from ABS

    I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
    Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
    Edit:
    I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
    #!/bin/sh
    # user configuration
    absdir="/home/mateusz/abs/autobuild"
    pkgdir="/home/mateusz/abs/packages"
    pkgfile="/home/mateusz/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Uaktualnianie bazy abs..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Tworzę listę pakietów do zbudowania..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Znaleziono poprzedni build."
    echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Szukanie pakietu $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Budowanie pakietu $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) Pakiet zbudowany."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) Błąd budowania pakietu!"
    fi
    else
    echo "(autobuild) Pakiet nieodnaleziony!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linkowanie pakietów do $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Zakończono."
    exit 0
    Last edited by xaff (2009-05-03 13:47:17)

    Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
    #!/bin/sh
    # user configuration
    absdir="/home/aabbott/abs/autobuild"
    pkgdir="/home/aabbott/abs/packages"
    pkgfile="/home/aabbott/abs/autobuild.list"
    # end of user configuration
    topabs="/var/abs"
    if [ ! -d $absdir ]; then
    mkdir -pv $absdir
    fi
    if [ ! -d $pkgdir ]; then
    mkdir -pv $pkgdir
    fi
    echo "(autobuild) Updating the ABS database..."
    sudo abs
    if [ ! -f $pkgfile ]; then
    echo "(autobuild) Creating a list of packages to build..."
    pacman -Qq > $pkgfile
    else
    echo "(autobuild) Found a previous build."
    echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
    fi
    for pkgname in $(cat $pkgfile); do
    echo "(autobuild) Searching for $pkgname..."
    find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
    if [ -d "$absdir/$pkgname" ]; then
    echo "(autobuild) Building $pkgname..."
    cd "$absdir/$pkgname"
    makepkg -csir --noconfirm > /dev/null
    if [ $? -eq 0 ]; then
    echo "(autobuild) $pkgname built."
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    else
    echo "(autobuild) There was an error when building ${pkgname}!"
    fi
    else
    echo "(autobuild) $pkgname not found!"
    cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
    mv $pkgfile.tmp $pkgfile
    fi
    done
    echo "(autobuild) Linking to $pkgdir..."
    find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
    echo "(autobuild) Finished."
    exit 0

  • Most efficient way to delete "removed" photos from hard disk?

    Hello everyone! Glad to have this great community to come to for help. I searched for this question but came up with no hits. If it's already been discussed, I apologize and would love to be directed to the link.
    My wife and I have been using LR for a long time. We're currently on version 4. Unfortunately, she's not as tech-savvy or meticulous as I am, and she has been unknowingly "Removing" photos from the LR catalogues when she really meant to delete them from the hard disk. That means we have hundreds of unwanted raw photo files floating around in our computer and no way to pick them out from the ones we want! As a very organized and space-conscious person, I can't stand the thought. So my question is, what is the most efficient way to permanently delete these unwanted photos from the hard disk
    I did fine one suggestion that said to synchronize the parent folder with their respective catalogues, select all the photos in "Previous Import," and delete those, since they will be all of the photos that were previously removed from the catalogue.
    This is a great suggestion, but it probably wouldn't work for all of my catalogues since my file structure is organized by date (the default setting for LR). So, two catalogues will share the same "parent folder" in the sense that they both have photos from May 2013, but if I synchronize May 2013 with one, then it will get all the duds PLUS the photos that belong in the other catalogue.
    Does anyone have any suggestions? I know there's probably not an easy fix, and I'm willing to put in some time. I just want to know if there is a solution and make sure I'm working as efficiently as possible.
    Thank you!
    Kenneth

    I have to agree with the comment about multiple catalogs referring to images that are mixed in together... and the added difficulty that may have brought here.
    My suggestions (assuming you are prepared to combine the current catalogs into one)
    in each catalog, put a distinctive keyword onto all the images so that you can later discriminate these images as to which particular catalog they were formerly in (just in case this is useful information later)
    as John suggests, use File / "Import from Catalog" to bring all LR images together into one catalog.
    then in order to separate out the image files that ARE imported to LR, from those which either never were / have been removed, I would duplicate just the imported ones, to an entirely separate and dedicated disk location. This may require the temporary use of an external drive, with enough space for everything.
    to do this, highlight all the images in the whole catalog, then use File / "Export as Catalog" selecting the option "include negatives". Provide a filename and location for the catalog inside your chosen new saving location. All the image files that are imported to the catalog will be selectively copied into this same location alongside the new catalog. The same relative arrangement of subfolders will be created there, for them all to live inside, as is seen currently. But image files that do not feature in LR currently, will be left behind by this operation.
    your new catalog is now functional, referring to the copied image files. Making sure you have a full backup first, you can start deleting image files from the original location, that you believe to be unwanted. You can do this safe in the knowledge that anything LR is actively relying on, has already been duplicated elsewhere. So you can be quite aggressive at this, only watching out for image files that are required for other purposes (than as master data for Lightroom) - e.g., the exported JPG files you may have made.
    IMO it is a good idea to practice a full separation of image files used in your LR image library, from all other image files. This separation means you know where it is safe to manage images freely using the OS, vs where (what I think of as the LR-managed storage area) you need to bear LR's requirements constantly in mind. Better for discrete backup, too.
    In due course, as required, the copied image files plus catalog can be moved bodily to another drive (for example, if they have been temporarily put on an external drive, and you want to store them on your main internal one again). This then just requires a single re-browsing of their parent folder's location, in order to correct LR's records inside this catalog, as to the image files' changed addresses.
    If you don't want to combine the catalogs into one, a similar set of operations as above, can be carried out for each separate catalog you have now. This will create a separate folder structure in each case, containing just those duplicated image files. Once this has been done for all catalogs, you can start to clean up the present image files location. IMO this is very much the laborious and inflexible option, so far as future management of the total body of images is concerned... though there may still be some overriding reason for working that way.
    RP

  • Jar file is not working after deleting all packages from the same directory

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

    hello
    i have created a jar file named as server.jar in the same directory in which i have all the packages(for which i have created this jar file).This jar file was working correctly when i had all the packages in the same directory.But after deleting all the packages from the same working directory, this jar file is neither working nor giving any error message..
    Please tell me what may be the reason???
    thanks in advanced

  • How to Delete complete package from R/3

    Hello Friends,
    I've deleted all the subojects of a package and then tried to delete the package name.
    But still i'm getting a message stating still the package contains subobjects.
    Please guide me how i can proceed further.
    Thanks in advance!
    Best Regards
    Prasad

    Hello Prasad
    If you have plenty of obsolete TADIR entries to delete then I would suggest to write a simple ABAP
    PARAMETERS:
      p_devc     TYPE devc   default '<name of your obsolete package>'.
    START-OF-SELECTION.
      SELECT * FROM tadir INTO gs_tadir
        WHERE obj_name NE '<name of your obsolete package>'
        AND       devclass = '<name of your obsolete package>'.
         DELETE tadir FROM gs_tadir.
         " NOTE: Be very careful not to delete other TADIR entries !!!
      ENDSELECT.
    COMMIT WORK.
    Or you could edit table TADIR using transaction SE16N (should not be a problem on the DEV system).
    Regards
      Uwe

  • 10g: Cannot remove package from "model" (business components)

    Using the new 9.0.5.1 JDev. I have removed all of the object in a package.Security package, because i did not want the capital letter in the package name (suspected of causing some other problems in my workspace). I cannot create a package.security package at all now. after just browsing the project defination, and looking in some other xml files, I see that the package is still defined all over the place, even without files in it.
    Why is this persisted? Shouldn't it be cleaned up when the last file is removed?
    Or at least, shouldn't I be able to remove it from my project without hacking all the XML code?

    package is an illegal name for a package in Java, I believe, so let's assume you started with "test.Security" package name.
    I filed Bug# 3574928 for the problem that exists in trying to "Move to Different Package..." if the destination package only differs from the target package by a different of case.
    The workaround in the meantime is to:
    1. Shift-select components in "test.Security" package and right-mouse "Move to Different Package...".
    2. Use a package name temporarily like "test.security2"
    3. Do "View | System Navigator" to see the System Navigator.
    4. Use System Navigator to erase the "test.Security" package by clicking on the BC4J package and right-mouse "Erase from Disk..."
    5. Close the project, and reopen it.
    6. Shift-select components in "test.security2" package and right-mouse "Move to Different Package...".
    7. Specify "test.security" as the target package.

  • Remove package from local IPS repository

    I published a custom package to my local IPS repository, but I would like to remove it. Obviously you can use pkgsend to add to the repository, but I can't seem to find any option to remove packages.
    anyone had luck with this? is it even possible?

    That functionality is not present in Solaris 11 Express. A kludgey way to do it, though, is to remove the package from the repository's pkg directory, then rebuild the catalog. However, the files belonging to the package will still be around in the files directory. They just won't be accessible.
    -- Alan

  • [solved] remove packages from a txt file list

    as the subject header says, I want to run "pacman -R" and have it read a list of packages from a text file.
    Is this possible????
    text file is formatted as such....
    file1
    file2
    file3
    Last edited by orphius (2013-07-09 08:11:53)

    Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

  • Problem removing package from AUR

    hi, ive been using avant window navigator, the bzr version from the AUR.  after a system update it stopped working and i want to try something else out anyway, but when i try to remove it i get
    checking dependencies...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: awn-extras-bzr: requires avant-window-navigator-bzr
    is there a way i can manually delete it?

    pacman -Rsc avant-window-navigator-bzr
    That will remove avant-window-navigator-bzr and anything that depends on it.

  • Can I delete installer packages from internal hard drive?

    I've a SSD with only 112g capacity so I'm constantly figuring out ways to dump unnecessary hard drive occupants. I found 3.4g being taken up by Installer Packages, can I safely delete these spacehogs?
    Please see screen shot. Thanks!

    Thanks mende1!  I read somewhere that it might delete "unistallers" also?

  • Permanently remove package from AUR/yaourt updates

    I've installed grub-git manually from the AUR, because I needed to patch it in order to get the intel graphics working on my MacBook. https://wiki.archlinux.org/index.php/Ma … _on_11.2C3
    I usually use yaourt -Syua to keep my system up to date. Now yaourt offers me a new version of grub-git every time I update and the patch that I applied would get removed. Is there a way to remove grub-git from the list or to ignore it permanently?

    Thanks for the answer.
    Well it worked in a way, as it now tells me that its orphaned...
    I can live with that, if there isn't a more elegant way.

  • Can I delete/remove files from my iPhone after importing into LR?

    Stoked to be able to pull photos and video from my iPhone via LR and skip iPhoto. But it didn't give me the option to 'move' the photos just to copy them. So now I have them all on my laptop but need to delete them from my iPhone to make more room. Deleting on the iPhone is a tetious one by one (checkmarking them) process. Any ideas?

    It can't be done by any LR option.  You can do it be means of a script, and Rob Cole (often posts here) has written one.  Not sure if he's made it available to others. 
    This has been much discussed, and you'll find a strong polarisation between people like Rob, who think it remiss of Adobe not to include "move" as an option, and people like me that think it a dangerous feature, and shouldn't even be an option! 

Maybe you are looking for