Md5 checksums of all packages from the specified directory

How to check md5 checksums of all packages from the specified directory with pacman?

karol wrote:It's 4.30 AM, the sun comes up and I'm going to bed.
Hmmm, the blue sky and violet-pink clouds remind me of Arch homepage ;P
Hehe, it's a nice feeling, nevertheless.
@dkorzhevin: here's a script I've made when I needed this:
#!/bin/bash
echo -n "" > pkgNotFound
echo -n "" > pkgSums
names=`pacman -Slq`
for name in $names
do
versionLine=`pacman -Si $name | grep "Version : "`
version=`echo -n $versionLine | sed -e 's/Version : //g'`
md5Line=`pacman -Si $name | grep "MD5 Sum : "`
md5=`echo -n $md5Line | sed -e 's/MD5 Sum : //g'`
pkgPath=`find /var/cache/pacman/pkg/ -name $name"-"$version"*"`
if [ "$pkgPath" = "" ]
then
echo "Error: "$name" package not found in cache." >> pkgNotFound
else
echo $md5" "$pkgPath >> pkgSums
fi
done
exit 0
So your output will be located in the file "pkgSums" and it will look like this, these are the checksums that pacman displays, and the paths of your local packages:
4ce0d40359bfa1a4a0f47a0e53e65fa5 /var/cache/pacman/pkg/acl-2.2.49-1-x86_64.pkg.tar.xz
24df396b3146d1a203e0d4f4d6edd67b /var/cache/pacman/pkg/ar9170-fw-1.0-2-any.pkg.tar.gz
8454e0fc947f9c8ce4ac5c39ed6ef165 /var/cache/pacman/pkg/attr-2.4.44-1-x86_64.pkg.tar.gz
9ef6b0ce43a4660170df21ead2f8e711 /var/cache/pacman/pkg/autoconf-2.65-2-any.pkg.tar.xz
505fe675565601f6ca803779601837cf /var/cache/pacman/pkg/automake-1.11.1-1-any.pkg.tar.gz
To check the checksums against the packages, just run md5 with the newly created file, if you get output then something stinks :
# md5sum -c --quiet pkgSums
There's another file "pkgNotFound" for the packages which are found in pacman but not on your disk. So make sure you don't have these two files already, in the current directory, containing important information - they will be overwritten.

Similar Messages

  • 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

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • The package file is missing from the project directory

    Today after working in SSIS all day with no problems, I re-opened one of my projects and got the message:
    The package file ‘package_name.dtsx’ is missing from the project directory. This package has been skipped, and project will continue to load.
    So two of my packages loaded and all remaining packages where skipped, one pop-up dialog for each “missing” package. I then looked in my project directory and all my packages are still there.
    1. Has anyone experienced this and found why this happens?
    2. Can I just import my packages again and be good to go?
    Update:
    I discovered that this had to do with renaming my packages in SSDT. For some reason the name changes did not get saved into the project .dtproj file. I was able to correct by renaming the .dtsx files in the project directory to their original name. Then
    I re-opened the project, renamed the packages to the new names, saved and closed all packages. At this point you need to save the project, which actually wasn't really straight forward. You need to highlight the project name in Solution Explorer
    and then from the File menu select 'Save Selected Items'. This updates the .dtproj file.
    Upon closing SSDT, a dialog SOMETIMES appears asking you to save the project, after selecting Yes, the .dtproj file also updates. However, I've realized that upon closing the project, that the dialog asking to save the project does not always appear,
    depending on what has changed in the project. To be safe, use method previously described, especially after renaming packages. Also, if SSDT happens to crash after you have renamed a package, the project will not re-open properly.

    I remember one such occurrence when I used Source Control (if I recall right it was TFS), and yes, you can simply right-click on the packages folder and choose 'add existing package'.
    But check for project file perhaps it has a wrong reference. E.g. something from the outside manipulated on the package files.
    Arthur
    MyBlog
    Twitter

  • The system cannot read from the specified device

    What do I do? ive tried on two computers and it says it on both computers when im trying to install! ive looked at all the troubleshooting pages and it doesnt say anything... my computer says the ipod is connected but when i try to install itunes it says that it cannot read from the specified device please help

    hi parkep!
    are you getting an error message number with that error message? if so, what is it?
    are you installing from the CD, or are you using installers downloaded from the Apple website?
    iTunes 6.0.4.2 Installer
    Ipod Updater Installer
    love, b

  • Installing a Separate package from the Solaris CD

    Hi .,
    I installed Solaris on my Sparc Station .,
    But now I want to install few packages which are not installed during the OS installation.
    Example:
    If i want to install the package SUNWarc from the Installation cd., Can anybody tell me the Easiest way to find out the Location of the package from the CD and to install it.
    Thanks & regards
    Suseendran .A

    Sorry to say NONE of the operation helps
    I am inside the Solaris cd1
    In my Solaris 1 CD for Solaris 10
    I am inside the
    /SOLARIS_10/PRODUCT directory,, here I found all the
    package folders.Please don't tell me what you are doing, show me exactly the screen output.
    But when I give the packageadd command inside the
    folder It is not working ans giving the Error
    Message..You are probably typing the command incorrectly.
    I asked if you would show (as in exactly cut and paste) the 'cd' and 'pkgadd' commands you are using. Without showing them exactly, it is very difficult to help you.
    Darren

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • Incomplete Data on report (report does not show all records from the table)

    Hello,
    I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
    Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
    I'm using CR XI runtime on Windows Server 2003
    Any help appreciated
    Thanks!

    Sorry Alexander. I missed the last line where you clearly say it is runtime.
    A few more questions:
    - Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
    - What is the exact version of CR you are using (from help | about)
    - What CR Service Pack are you on?
    And a troubleshooting suggestion:
    Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
    Download the modules utility from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
    and follow the steps as described in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
    The download also includes instructions on how to use modules.
    Ludek

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

  • Delete all entries from the following tables - Follow-up Activities (oracle)

    Hello,
    I performed a homogeneous system copy of our development BW system with the database (oracle 11.2.0.3) from the BW production system!
    I already start the oracle database and the SAP system in the target system/server (development BW system) and I´m doing some follow-up activities. One of this activities is (at the system copy guide 6.2.3.2 Activities at Database Level) is to delete all entries from the following tables:
    DBSTATHORA, DBSTAIHORA, DBSTATIORA, DBSTATTORA
    I tried to delete them using SQL Plus:
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ... and it show me that error message.
    This is strange because when I go to transaction SE14 and check the DBSTATTORA I see that table exist and contain a lot of entries!
    Why this is happened in SQL Plus!? I´m running the correct SQL statement for doing this type of task or not?
    How can I delete the entries of that tables? Can I do that using the transaction SE14?
    Can you help me please?
    Thank you,
    samid raif

    Hello
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    It doesn't surprise me as you are not mentioning the schema name here. Instead it should be
    delete from SAPSR3.DBSTATTORA;
    Assuming the schema owner is SAPSR3. if the owner is different then replace that with the correct one.
    Regards
    RB

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • I have just upgrade Itunes (10.6.3.25) and now I can not see my Ipad anymore. before the upgrade it was working fine. I already tried all suggestions from the support page, except re-installing Itunes.  any suggestions?

    I have just upgrade Itunes (10.6.3.25) and now I can not see my Ipad anymore. before the upgrade it was working fine. I already tried all suggestions from the support page, except re-installing Itunes.  any suggestions?

    SinluFrank wrote:
    already tried all suggestions from the support page, except re-installing Itunes.  any suggestions?
    Yes. Reinstall iTunes. If that is the point at which you stopped trying the support suggestions then it makes sense to me, that you move on to the next suggestion and if reinstalling iTunes is the next suggestion, so be it.
    However ....  I too have issues that arise out of the blue with my iPad being recognized in iTunes and what I always do and it eventually works is to quit iTunes, restart my MacBook, and reboot my iPad.
    Rebooting the iPad is the last thing that I do and only if I have no success with quitting iTunes and restarting the Mac. It may take a few tries to work, but if you are that dead set against reinstalling iTunes, then give it a try.

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • I have transferred my itunes library to an external drive. I then attached the external disk to a new computer. I can now access all songs from the new computer. But I can't access playlists. I can still  access all songs and playlists on the old computer

    I have transferred my itunes library to an external drive. I then attached the external disk to a new computer. I can now access all songs from the new computer. But I can't access playlists. I can still  access all songs and playlists on the old computer

    If you right mouse and select Get info it will show you the Apple ID used to purchase these songs.
    Usually the name of an apple id is based on the email. So knowing that you may have forgotten the Apple ID password.
    You can request a new password here http://www.apple.com/support/appleid/

  • Need a way to start the package from the point of failed record

    Hi,
    I have a package which loads billions of records, the problem i am having is when it fails after 1 billion record have to start from the beginning. Is there a way where I can start my load process from the failed record instead of starting from the beginning.
    Thanks in advance

    Simply implementing checkpoint wont restart package from the failed record onwards. It depends on how you do data transfer. For example if its a data flow task and if its an intermediate step that fails, then it wont start from failed record onwards next
    time.
    A much better option would be to implement it like this. Have a OnError event handler for the task and inside that use execute sql task to populate a control table with the max key/timestamp value of record which has been extracted. 
    Each time check if table has a entry and if present take max date/key value from it. Use the value to filter the source data to take only records with value > fetched value to start from next record onwards.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • How to deal with #ifdef in .java files with javadoc tool?

    My .java file included some '#ifdef' & '#endif' sentence. So when I used javadoc tool to generate the .html files, error happened. Can anyone give me some indication how to resolve the problem, provided that the source code can not be changed because

  • Problem performing flat file reconciliation in 11gR2

    Hello, In R1, I had configured a simple GTC flat file connector that worked well. I've now updated to R2 (well actually, I've done a clean install), recreated the same connector configuration and tested with a text file that worked in R1, but this ti

  • 2600 Classic Phone memory Full

    I am not able to add phone numbers in my contacts list after about 900 phone numbers. The phone says phone memory is full. I still have 8MB free on my phone. Is there a separate memory for phone list? Can I increase this?

  • Family Share emails are not working

    I have a Family Share account set-up and have invited my family members.  But when they click on the link in the email all they get is a webpage saying they need to be logged into iCloud.  They are logged into iCloud, yet they are not able to join th

  • Downloaded 2 books from library but can't open them invalid Why?

    Been using Overdrive Media Console for 2 yrs without a hitch & without having to sign in. Now asked to sign in which I have done an innumerable times with no success. Have changed my password, turned off IPad & on again. Librarian said Adobe support