Redownload and reinstall all installed packages

I need to redownload and reinstall all installed packages, because I made some tests with prelink and something goes wrong. I found an article in wiki that covers download of installed packages, but howto reinstall them all?
The problem is that some apps are acting weird. I also have problem with compiling of AUR packages, because I get this error message:
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
The gcc package is installed. Any sugestions?
Last edited by macros78 (2007-09-09 12:19:21)

I think this should do it...
pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt
pacman -Sy `cat packages.txt` --noconfirm

Similar Messages

  • Reinstalling all installed packages using pacman

    I feel my installation is corrupted .volcontrol muted on every boot,nautilus crashing,etc and more.
    So,I though of reinstalling whole Gnome-2.22
    I got below script somewhere in this forum or wiki maybe:but the script is erring out :?
    please help !
    pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")
    and got the below error message
    error: no targets specified (use -h for help)
    Last edited by praka123 (2008-04-24 14:47:47)

    Run the command pacman -Qq and pacman -Qmq separately and try to find out why it breaks.
    pacman -Q displays all packages, pacman -Qm displays the packages that are not in any repos, that is the packages you installed manually == foreign packages. You can't reinstall these foreign packages with pacman -S by definition.
    So you have to filter them out of pacman -Q output.
    pacman -S $(pacman -Qq) fails here, because I have 3 foreign packages, but  pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)") works.

  • Need to redownload all installed packages [SOLVED]

    I found the redownloading all installed packages wiki page, but when I attempt either of the suggested commands on the page, pacman chokes on the first package that I installed out of the AUR.  Can someone recommend how I can simply download all of my currently installed packages to my local db?
    Thanks!
    # pacman -Sdw --noconfirm `pacman -Q | awk '{ print $1 }'`
    # wget $(pacman -Sdp `pacman -Q | awk '{ print $1 }'`)
    Last edited by graysky (2009-08-18 19:26:57)

    I actually think it does... when I use your shell command after all my packages are populated, I get a line that reads, "checking package integrity..." then a fresh shell.
    VERIFIED: it does indeed.  I removed /var/cache/pacman/pkg/zvbi-0.2.33-1-x86_64.pkg.tar.gz then touched an empty file of the same name.  After re-running your command, pacman detected the problem, removed the offending package and re-downloaded when I ran it a second time.  Smart
    checking package integrity...
    :: File zvbi-0.2.33-1-x86_64.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n]
    error: failed to commit transaction (invalid or corrupted package)
    zvbi-0.2.33-1-x86_64.pkg.tar.gz is invalid or corrupted
    Errors occurred, no packages were upgraded.
    Last edited by graysky (2009-08-18 21:14:48)

  • I have to reformat my hard drive and reinstall all of my programs. What do I do about Creative Cloud? I also still need access to CS6 (I have a Marksware converter for InDesign to Quark).

    I have to reformat my hard drive and reinstall all of my programs. What do I do about Creative Cloud? I also still need access to CS6 (I have a Marksware converter for InDesign to Quark).
    This is a MacBook Pro 15" (Model number A1286) running Mavericks. Hard drive is fine but system software has been corrupted. I cannot simply restore from Time Machine as it will copy the corrupt system.
    Will I have to find all of my serial numbers before I can launch any of the programs?
    Thanks

    For the Cloud, you log in to your paid Cloud account and download & install the same way you did the first time
    Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html
    If you have the perpetual license version of CS6 you install from your original media and use your serial number
    If you have the version of CS6 that is installed via the cloud use this link
    http://helpx.adobe.com/creative-cloud/kb/download-previous-versions-creative-applications. html
    -or http://www.adobe.com/downloads/other-downloads.html

  • My HP computer's hard drive crashed.  I have replaced the hard drive and reinstalled all of the software.  I have copied my I tunes library from my backup hard drive to the new one.  How do I restore the permissions?  This is the 3 rd time I have had to d

    My HP computer's hard drive crashed.  I have replaced the hard drive and reinstalled all of the software.  I have copied my I tunes library from my backup hard drive to the new one.  How do I restore the permissions?  This is the 3 rd time I have had to do this.  THe share screen says you are limited to 5 ??

    No backup is not good.
    You can transfer itunes purchases from an ipod.  File>Transfer Purchases

  • Acrobat X Pro hangs when making PDF. Using on Windows 7 64. Just started hanging. Uninstalled and reinstalled. Installed update. Once it hangs, must go into crtl, alt, delete to force close.

    Acrobat X Pro hangs when making PDF. Using on Windows 7 64. Just started hanging. Uninstalled and reinstalled. Installed update. Once it hangs, must go into crtl, alt, delete to force close.

    As a debugging step, try printing to the Adobe PDF printer. If that fails, repeat with print-to-file selected. Assuming the print succeeds, open the file in Distiller to complete the creation of the PDF. If you get the PDF, then check to see if AcroTray is properly working as a background task.

  • My ipod gen 3 is frozen after the latest update from itunes,it will not power on or restore without error.Itunes is up to date,changed usb ports,even uninstalled and reinstalled all apple software, error 1601 during restore

    My ipod gen 3 is frozen after the latest update from itunes,it will not power on or restore without error.Itunes is up to date,changed usb ports,even uninstalled and reinstalled all apple software, error 1601 during restore

    Hello, VvioletT. 
    Thank you for visiting Apple Support Communities.
    I see you are experiencing issues syncing your iOS device.  Here are a couple articles that I would recommend going through when experiencing this issue.
    iOS: Troubleshooting USB-related alerts when syncing
    http://support.apple.com/kb/TS5254
    Resolve issues between iTunes and security software
    http://support.apple.com/kb/ts3125
    Cheers,
    Jason H.

  • I have repeatedly removed and reinstalled all of my Apple programs on my PC but every time that I reinstall the programs malfunction.

    I have repeatedly removed and reinstalled all of my Apple programs on my PC but every time that I reinstall the programs malfunction.

    He may be referring to the Windows version of iTunes, Airport Utility, etc.

  • My iphone 5 is stuck in recovery mode. Followed apple support instructions...uninstalled and reinstalled all apple products.  Not getting any error codes, just cord/tunes pic. Itunes is not recognizing my phone so I cant even restore. Pls help !

    I just got this phone about 2 weeks ago.  I was prompted to do an update and did it... then my phone showed the image of the wire to the itunes symbol... so it's in recovery mode.  I have been working on this for hours!  I read tons of apple support procedures and followed them to the letter.... HT1414, TS3125, TS1538 etc.
    I uninstalled my itunes, quicktime... all the apple products like the instructions said. I reloaded everything and rechecked to make sure it was good.  Driver is showing up good with no problems.
    I would totally be fine with restoring it to the original settings... I've only had it for 2 weeks! But itunes won't even recognize the phone so I can't even hit the restore button.  This is so frustrating. I am running windows 7... and I ran all updates like the apple support instructions said. I checked updates with Norton.  All good. I did all the windows & norton updates before I uninstalled and reinstalled apple products. If I could only get itunes to even recognize the phone.
    The phone is not jailbroken... it was fresh from the factory... then that update!
    Please help.  I am without a phone.

    I may have fixed the issue. The errors in device manager were a driver error apparently windows didnt have appropriate drivers installed to allow itunes to recognize a device in recovery mode. I followed the paths in the guide above in more detail using this path ( http://support.apple.com/kb/TS1538 under if device not recognized while in recovery mode) to alleviate the issue update is now installing appropriately ( i hope).
    I will update if everything works correctly

  • Command to compile all installed packages

    hi to all,
    exist a command to compile all packages are installed in your system ?
    thanks

    We know what you want. We also know that instead of searching for it, you want someone to give you "a tip".
    Well, I have a tip for you - don't do it. There is no appreciable benefit gained from recompiling all your packages, so save the time you would have spent on it for something more useful, and we'll leave it at that.
    Alternatively, if you really want to do it - SEARCH THE FORUM.
    Thread closed.

  • How do I uninstall and reinstall all of iMovie 10.0? When launched the screen is only a blank gray window.

    I was in the process of editing a video and the screen when to random lines.  After a restart, the computer is fine, but iMovie won't start up anymore.  When iMovie is launched there is only a blank grey window that is shown.  The menus are still accessable from the top of the screen, but the window never changes.  I deleted iMovie and reinstalled it from the App Store, but when launched the same thing happens. What other items need to be deleted and reinstalled? Has anyone else had a similar issue?

    I have a MacBook Air with an Intel HD 3000 graphics card.  To clarify, I was able to install and use iMovie 10.0.  Something happened while I was working in the program and iMovie crashed.  Now when I launch iMovie I only get a grey window, that typically would have shown the library of projects and preview screen.
    In old school Mac, there were preference files that could be corrupt and might need to be deleted.  But, I'm unfamiliar with all the extra files that have been installed when iMovie was installed.

  • 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

  • Reinstall the installed packages

    hi
    I have dual boot system Ubuntu + Arch linux and I wanted to configure arch through chroot. unfortunatly I forgot to mount /dev and /proc so it got some errors during upgrade.
    /tmp/alpm_xXzQ7F/.INSTALL: line 7: /dev/null: Permission denied
    or
    /sbin/mkinitcpio: line 253: /dev/null: Permission denied
    I didn't start the system yet but I would like to reinstall packages if its posible. I found this  command
    pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")
    and it returns
    error: no targets specified (use -h for help)
    which is not so strange cause 
    pacman -Qmq
    returns nothing which is strange
    Any help would be apriciated.

    The "target" for your command is missing, s/b:
    pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)" >pkglist)
    This command is used to generate a list of installed packages such that they can be re-installed by pacman:
    #pacman -S $(cat pkglist)
    ....EDIT
    This pkglist has to be accessed possibly through usb flash such that the re-install is accomplished for the packages in the pkglist.
    Please google "re-install pacman packages" for more accurate info( my info from memory).
    Your /var/cache/pacman/pkg may not contain the desired packages altho I have no reason to believe it won't.
    Last edited by lilsirecho (2009-11-05 18:22:25)

  • How to format and reinstall without install media

    I would like to "restore to factory" my mid-2010 MBP (17") .  Except of course I would like to have the 10.7 install and not have to start with 10.6 and then do the 4GB download again.  Is that possible?
    This is all to troubleshoot a performance issue with Final Cut Pro X.  If I do manage to pave my disk, will the AppStore still recognize me (ie I'm not interested in paying another $300+ for various AppStore purchases)  I'm assuming that once I log in with the same apple Id I used to make the purchase all should be good.

    ...not have to start with 10.6 and then do the 4GB download again....
    Since Lion deletes the installer after it's finished upgrading, you need to make a copy before hand.  Download the Lion installers and when it auto-starts, cancel the installer.  Then make a copy of the installer located in your Applications folder.  You can use this again on other machines in the future without having to download again.
    You can also make a clone of your SL install before installing Lion.  Make a clean install of SL, clone it, then upgrade to Lion.  Restoring a clone is almost always faster than installing from the install disks.  This is what I do when testing & troubleshooting many of my software issues.  (I usually doing that with virtual machines also.)
    If you want, you can make a Lion installer DVD or USB flash drive.  You can Google on how to make one of those, but realize that neither is supported by Apple.  And if you haven't purchased updated ones, you will still need your original disks that came with your Mac to reinstall any of the iLife apps that came with your Mac.

  • Redownload and Reinstall Documents To Go Pro Bundle Win English

    Hello!
    I have had my palm E2 for about 2 years now and haven't used it a lot. I decided to use it again and gave my other handheld to my sis. The problem is that my sis lost the installation cd that came along with it. I managed to download the palm hotsync software from the support website but nowhere could I find the documents to go download link.
    I have the documents to go software installed in the device and would like to install the documents to go software on my PC so I could sync some of my documents.
    I checked with my account on dataviz since upon installing 2 years ago I registered the product but unfortunately the download links available comes with a price.
    I would like to know if there are any free download links out there.. I have my registration and activation number from dataviz, so as long as I can have the software I would just use these numbers to license my product.
    Hope you guys could help me out thanks a lot!!
    hyuuga_patik
    Post relates to: Tungsten E2

    Palm's license to distribute a free copy of DTG was limited to the installation discs...there is no free download.  If you don't want to pay Dataviz, you should be able to find a replacement disc on eBay, pdaparts.com or usedpdaparts.com .
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

Maybe you are looking for