Does pacman ever check _all_ dependencies?

Hi,
I've been thinking about this for some time, and tried to find the answer on the forum to no avail. So, the question is this: does pacman ever check the consistency of dependencies among all the installed packages?
The reason for my asking is mostly due to the existence of the --nodeps option when removing packages. I think the answer to my question is "no", since I just tested it by removing wget (needed by hwd and abcde on my system) with the --nodeps option, and then did a pacman -Syu. pacman did not see that a dependency was missing - not very surprisingly, since the packages depending on wget were up to date.
Now, is there any option that makes pacman do a full dependency check on the system? If there isn't, I would very much welcome one. Or, perhaps even better IMO, if pacman did that when doing a full system upgrade (-Su) - at least that it notified the user that some dependencies were missing (if any) and asked whether the user wanted to install them.
Since I haven't found an existing tool to this end, I wrote a python script for this some time ago; chkpkgs.py. Sorry if the code isn't up to python standards - I'm still learning
EDIT: Changed the subject to something smarter
EDIT 2: Posted an updated version of chkpkgs.py in the pastebin. Now it does not use the REQUIREDBY field, but creates this info from the DEPENDS info.
Last edited by Bebo (2007-07-04 07:57:40)

Bebo wrote:Just a remark on the script; it is one or two months old and I had to recall what I had done, to better answer shining's comment. The requiredby information is _only_ used to find the "solitary" packages, i.e. those that don't depend on any other package && are not required by any other package. The provided/unrequired and required/unprovided packages are found only by looking at what packages are installed on the system and the dependencies of each installed package. (Maybe it would be better to find the solitary packages by this info alone, too. I'll see if I get around to it, some time )
As you said your script computes the RequiredBy field again, but this information is already in the local db, example :
pacman -Qi filesystem | grep Required
Required By : fakeroot hal slocate
pacman uses this information for finding which packages are not required by any others, while your script does not.
So they find nearly the same result, except for 3 packages. But I believe it's my database which is broken, and that for these 3 packages, the RequiredBy field is wrong :
LANG=C pacman -Qi libnetworkmanager pkgconfig xulrunner | grep -E "Name|Required"
Name : libnetworkmanager
Required By : pidgin
Name : pkgconfig
Required By : sshfs
Name : xulrunner
Required By : kazehakase
LANG=C pacman -Qi pidgin sshfs kazehakase | grep -E "Name|Depends"
Name : pidgin
Depends On : startup-notification gtkspell libxss gstreamer0.10
Name : sshfs
Depends On : fuse glib2 openssh
Name : kazehakase
Depends On : osb-browser-svn osb-jscore-svn osb-nrcit-svn
eg libnetworkmanager is required by pidgin, but pidgin doesn't depend on anything related to libnetworkmanager, as far as I can tell. Same for two others.
Since your script doesn't use the RequiredBy field, but compute it, it shows these 3 packages : libnetworkmanager, pkgconfig and xulrunner.
Is this more clear (I'm not sure ) ?

Similar Messages

  • Does Pacman Have A Command To Check For Left Over Dependencies?

    Does pacman have a command to check for left over dependencies?
    I know that when you remove something it's checking for dependencies and I've seen it show these before, but I swear I removed something that had dependencies and it don't show any and just removed only the single program.
    So basically I wanted to know if there are any pacman cmds like this to check the system with and clean it up?
    THANKS
    P.S. I didn't notice anything like this in the Wiki, only for cleaning out the cache....

    jasonwryan wrote:
    DasFox wrote:One I was reading the Wiki and I overlooked the information.
    I saw no evidence of that: you might have mentioned it in your post...
    Also I'm not your noob or your boy, I'm a middle age man that's been using Linux 10 years, running a Slack box most packages and kernel all custom compiled only running OpenBox...
    So next time you want to start telling people to do the basic research before posting, stop and think that maybe they've done it already.
    Again, there was no evidence of you having done any research: without evidence there is no reason to assume what the observed behaviour contradicts...
    So I've RTFM, just be careful with your choice of words and attitude, being the MOD doesn't give you rights to SPIT on people!
    Your perception about being insulted is your own - my post contains nothing insulting or offensive, just a very clear answer to your question.
    P.S. And if you were being nice in your odd sort of way I also don't appreciate it, because when we gone out and done the research and overlooked something we have every right to come here and ask and not be told like you've done.
    You have every right to ask questions; we have every right to insist that you follow the Forum Etiquette when doing so: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
    No you didn't reply which you could of simply done, or asked if I read the Wiki which would of been the proper thing, not telling me to RTFM!
    I'm like this at times because I've seen it all to often....
    Next time before telling someone, ask them, in case they forget to mention it to you...
    Anyhow let's move on....
    P.S. So I can remove those packages without a problem?
    Last edited by DasFox (2010-11-26 06:16:08)

  • [Solved] Makepkg hanging on checking runtime dependencies.

    Hey guys, as above really.
    Recently I've been having problems with makepkg and installing from AUR. It seems to fetch dependencies from the official repositories fine, but when makepkg goes to compile the PKGBUILD, it hangs at '==> checking runtime dependencies'.
    I've checked htop and I've a yaourt process running like:
    /bin/bash /usr/bin/yaourt -T gtk-perl
    the process is using around 40% CPU and even if I leave it running for a while, nothing happens.
    I've made no system changes (besides changing http to https in the yaourt config to stop the 301 error after AUR came out of maintenance https://bbs.archlinux.org/viewtopic.php?pid=1182722) since this started happening so I'm pretty stumped to what it could be.
    Any ideas?
    edit: It works if I run as root, strange, but not ideal.
    Last edited by dunks (2012-10-28 01:38:46)

    I do not use yaourt.  We have been having issues with the AUR server over the last couple days.  It is back up now on a new server, but there were issues relating to that move.  Does this thread have any bearing on the issue?
    Edit: Never mind.  I am distracted and get low scores for comprehension today
    Last edited by ewaller (2012-10-27 23:14:57)

  • [SOLVED] Check for Dependencies

    Hey, I'm trying to write a script that'll check for dependencies to install and build something. I can check to see if the file exists but that seems kind of brute force. I'm trying to use
    pacman -Q
    but I can't get it quite right.
    Example:
    DEPS="python2-setuptools git curl wget"
    if ( sudo pacman -Q $DEPS >/dev/null ) ; then
    echo "Deps not installed, installing now"
    sudo pacman -S $DEPS
    else
    echo "Dependencies met."
    fi
    But this always returns that DEPS aren't installed and prompts to reinstall.
    Last edited by 0X1A (2013-10-03 18:55:03)

    kaszak696 wrote:
    Direct fix of your code would look like this:
    #!/bin/bash
    DEPS="python2-setuptools git curl wget"
    pacman -Q $DEPS &> /dev/null
    if [ $? -ne 0 ] ; then
    echo "Deps not installed, installing now"
    sudo pacman -S $DEPS
    else
    echo "Dependencies met."
    fi
    , but as pointed above, it's not the best approach, what exactly are you trying to accomplish?
    This works, but still prompts for re-installation. I'm just trying to see if the user has those packages installed and if not then install them.

  • Where does pacman saves the downloaded stuff?

    When I first installed a program, it installed but pacman needed to download things, I then remove it but... When I re-install it again, pacman doesn't need to download the things any more...
    Where does pacman store the downloaded stuff?
    How do I get rid of them?

    /var/cache/pacman/pkg
    pacman -Sc  or pacman -Scc   
    i recommend -Sc ,  -Scc can be harmful in the long run if you ever need to downgrade a package
    Last edited by jc61990 (2013-02-19 15:21:48)

  • Does Verizon ever provide a different model phone if the customer has basically had the same issues with 3 prior 'replacemet' (refurbished) phones?

    I have owned a Samsung Galaxy Stellar for the about the past year and a half, which is only my second smartphone. I am not a whiz at all this but I'll try to be coherent. I had problems with the Stellar  from the beginning: Very slow loading browser, problems with the cursor, etc. After about 6 months, the phone dropped, and no, I didn't throw it on the ground!
    I have insurance and it was still under warranty, so it was replaced, by Assurian, I believe. The replacement phone had the same problems, plus a whole lot more. During calls, the wifi, and/or Bluetooth options would appear, or the phone would suddenly go on mute. In addition, when I tried to access my voicemail, what I heard was my own voice and outgoing message, not the one from Verizon asking for the password. These problems were intermittent, which made the Verizon employees  dubious, but it's like the car that you take to the garage that suddenly works fine. Anyway, there were some other problems too, so I got a replacement phone again, which is the phone I currently have had for about 3 months. A few days ago it went from bad to worse. In fact it went Crazy!: Every call I make or receive is immediately dropped. Maybe after 5 or 6 tries, I can  complete a call, but rarely. When I do, the mute and speaker options spontaneously activate, at the same time!!  When I go into my voicemail, the messages are deleted in rapid fashion, one after the other, and I cannot get them back.   Or, as I said earlier, the Wifi/Bluetooth screens appear, and it's difficult to punch in any numbers as I have to hit the back arrow many times. Strangely, the phone makes odd sounds: It buzzes or makes this odd chiming sound! If I didn't know better, I would think that I have finally lost my mind! I could go on but you have the gist.  The phone is simply not workable. I  phoned tech support, and she was very nice. After an hour on the phone, it worked ok, until the following day. She didn't do a factory reset, but she had me take the sim card and battery out. She did things on her end, which unfortunately I don't recall, but the phone worked ok until the following day, when it went crazy again.
    I took it to the corporate Verizon store where I live, The guy said "It's a lousy phone, a cheap, bottom of the line phone." By the way, throughout this time, I had had about 6 hours with tech support, between this phone and the last one.
    THIS IS MY QUESTION: I asked him if I could have a totally different phone, since this model is clearly defective. He said no, but they could send me another replacement. He told me to call trech support  while I was there in the store and ask them, because they don't do repairs at the store. The tech on the phone  told me the issue is with my Gmail account! That there is a virus on some phones and each time I get a replacement phone, because I have kept the same Gmail account, the virus keeps getting 'transferred', for lack of a better word, to the next phone. I was totally incredulous. Virus? She said, "Well, I use the  term loosely, but it's just a weird glitch.When you get a replacement phone, bring it back and we'll save and upload all your data, and set  you up with a new email account." I was confused and annoyed, as I had never heard of this, and felt I was getting the runaround. I asked her if they could give me a different phone (free of charge) and of course the answer was no. By the way, I should mention that the Stellar is no longer made. These are my options, according to the 3 different Verizon employees I spoke with: I am eliblele for the early upgrade which they call the Edge. From what I understand, it's the full retail price paid out over 2 years, with a partial payment made at time of purchase. One person told me that after 24 months, they would accept what I paid as payment in full? Sounds too generous. Option 2 is $50 of a new phone, and option 3 is to buy a new phone at a Verizon store that is having an android sale. So, I acquiesced to getting another replacement which I will keep until I buy a new totally different phone. My impression is that it's not like buying a bad toaster. They don't refund your money and let you get whatever you want for the same price! My question is this: Does Verizon ever just replace a phone that has had problems, with a totally different model? I have made as much of a stink as I can muster towards that end, but I am wondering if anyone out there has actually been able to pull that off?
    Thank you for any feedback ,comments or stories!

        amysue, We defintely want you to have a reliable and working phone. Our apologies that you have had issues with the current model, the Galaxy Stellar. After reviewing information about the overall function of the phone, it does not appear that Samsung has recalled the device or stated that all Stellar devices are defective, with that being said, the warranty would still only cover the same make and model. The only time a completely different phone is sent out is if the manufacturer deems the entire make and model overall faulty. It is common to have a few glitches and a master/factory reset, in addition to all other troubleshooting, will help resolve these issues. The Stellar is no longer made because there have been several Samsung galalxy devices launched, and this is common with any device manufacturer. Our recommendation is to take advantage of EDGE, if you are seeking a new device with low monthly payments. This gives you the chance to explore different device options without having a contract and you can EDGE up to a new device once meeting certain requirements. We hope to resolve your concerns here or by calling customer support.
    sheritah_vzw
    Follow us on Twitter
    @VZWSupport

  • HT3529 When using imessage on iphone5 does it ever use up any data from your carrier whether using wifi or carrier

    When using message on the iphone 5 does it ever use up data from your carrier, whether you are using wifi or carrier

    When using iMessage, they use data. If you are connected to wifi, it will use your wifi data, which will have no affect on your cellular account. If you are not connected to wifi, you will use cellular data, which is charged against your carrier account.

  • Storage bin 320 902  does not exist (check your entry)

    Storage bin 320 902  does not exist (check your entry)
    Message no. L9009
    I have created the new bins in the interim storage area 902. In the table LPAG also the storage bins are visible. I am creating thre GR for the PO in the system but still getting the error in as above . Please help me out.

    Hi
    check the movement type configuration which is used. So u can find what storage bin is used for the particular movement type.
    If not existed create the interimbin.
    Hope this helps you...
    Rgds,
    Kris.

  • Organizational unit 00000000 does not exist; check entries

    Hi Experts,
    While creating the business partner in transaction BBPMAININT the error is
    Organizational unit 00000000 does not exist; check entries
    where do i have to make entry of the organisation unit
    , already i have entered the purchase organisation.
    Thanks

    Hello,
    Can anyone Explain me How can i Create Vendor  EBP using T Code ppoma_bbp.
    I am using Tcode bbpgetvd for for Replicating Vendor Master to mySRM System and it is Having field of
    Organuzational Object for Suppliers 
    Object ID ______
    I have given Object id which is in assigned is ppoma_bbp (Organizational Structure).
    I have Tried to assign Object ID of Organizational unit which is assign with Purchasing Org. and Purchasing Grp.
    Please Help Me anybody.
    Thanks in Advance.

  • Error - Account group  does not exist, check classification assignment

    Hi Guys,
    I am having an BP replication issue from CRM to R3 when i create BP from Web IC with role UTIL_IC. BP gets replicated to R3 if i create BP from GUI.
    Bdoc Error - Account group  does not exist, check classification assignment
    i have completed all the required configuration as below
    Setup of no range for BP and assigned to grouping
    PIDE settings in R3
    Setup if account identification profile in IS solutions
    Thanks,
    Nitin

    Nitin,
    Refer to [this|BP replication error; &[this|Contact Person Replication From CRM to R/3; thread.

  • How does Weblogic 7 check for well-formed xmls

    Hello,
    I am having trouble deploying my applications with WLS 7.0. The error I am getting
    is that my web.xml is not well-formed, but I have double-checked everything and
    I think it is correct.
    I have read that weblogic 7.00 does not deploy an application which xmls are not
    well-formed (whereas earlier versions of weblogic would do so).
    My question is: against what dtds does WLS 7 check the web.xml, the weblogic.xml
    , etc.? I would think that it would check it against the dtd in the head of the
    xnl file, i.e., http://java.sun.com/dtd/web-app_2_3.dtd for the web.xml, is this
    correct?
    If this was true, what about intranet applications that are not connected to the
    Internet? could this be the reason?
    TIA Cristina Ceballos

    Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader(xmlString)));try/catch this ugly line, if no parse exception and a non -null doc exists then your XML is well-formed.
    of course if your XML contains namespaces, you would have to setup correctly the document builder.

  • Pacman only checks core rep

    I just installed Arch but I can't get pacman to check any repositories other than core. Ie,
    $ pacman -Sl extra
    returns nothing.
    Here's my pacman.conf
    # /etc/pacman.conf
    # See the pacman manpage for option directives
    # GENERAL OPTIONS
    [options]
    LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    #[testing]
    #Include = /etc/pacman.d/testing
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/core
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/extra
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/community
    #[unstable]
    # Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/unstable
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    What could I be missing? The pacman.d files are all identical.

    peart wrote:Try "sudo pacman -Sy" first.  If you just installed, you might need to get the package lists for the other repos.
    Silly me. That fixed it.
    brebs wrote:
    The pacman.d files are all identical.
    That's wrong. The lines should contain the repo name, e.g. for /etc/pacman.d/community
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/community/os/x86_64
    Yeah, I know, I meant "identical" as far as practical comparison purposes go, given that each file has a unique purpose.

  • Does Siri ever work?

    Siri never produced any usable result for me in iOS 6, but since upgrading to iOS 7 I can't even submit a request. Every attempt to use Siri gives me the annoying "apology" that she/he can't take any requests right now.
    Does Siri ever actually work for anyone?

    Hello Mela1987,
    The following article provides tips that can help resolve most issues with Siri.
    iOS: Troubleshooting Siri
    http://support.apple.com/kb/TS4079
    Cheers,
    Allen

  • Does Mountain Lion checks for original hardware??  (problem with third-party ram)

    Hi all,
    I am wondering if Mountain Lion does a hardware check for original hardware. I did a RAM upgrade 6 months ago (from 2x2Gb to 2x4Gb Dolphin 1333Mhz DDR3 on a an early 2011 MacBook Pro)  and everything went smooth, I really noticed the upgraded performance.
    My problem started after a firmware update (I was running Mountain Leopard). The system became really unstable, with a lot of programs crashing randomly and some crash black screens. I then decided to update to Mountain Lion with a fresh install to solve all the problems and clean up my computer.
    I did it from a bootable USB drive using Lion Disk Maker and following these instructions with the harddrive completely formatted: How To Make A Bootable Disk Or USB Drive Of OS X Mountain Lion. The installation got stuck half way through and exited without any error message. After checking the log I got an error code (FAILED TO VERIFY ESSENTIALS PACKAGE). After diggin for a couple of days I found out in an old apple support discussion (Failed To Verify Essentials Package On Installation)  that the problem could be the non-original RAM. I then replaced the RAM with the original one and finally was able to install the new OS without problems.
    After the OS install and setting up my usual programs, I decided to go back to the upgraded RAM for extra performance and the crashes came back as before. So the newer RAM clearly caused the system to become unstable. So right now I am using the original RAM, I want to get extra RAM but not sure if it was a sporadic problem or it will happen with all the third party memories. Going to the official tecnical service will cost me more than 130€ while buying a third party RAM is around 40€. Is it really Apple  pushing us to get original parts or I am just unlucky? Did someone else experienced something similar?

    Well, the upgraded RAM worked properly for 5 months straight. I don´t think it is a problem of dirt on the contacts or improper seating. Having the RAM not working properly the same day I want to update the OS, without touching it would be too much of a coincidence I think.
    I am going to try the third party RAM again to be sure, trying to clean the contacts just in case, I will post the outcome later.

  • How does pacman know how to remove packages?

    I've been looking at the 'Creating Packages' page, and it says to create a pkgbuild I only need to specify the build function. My question is... how does pacman know which files to remove when you do pacman -R? Does it keep track of all the files that were installed via build()?
    Second question: How do you guys keep track of packages that weren't installed via the AUR? For example, if you want to hack on a project and use that hacked copy instead of the one available in the repos, what do you usually do? I'm guessing that I should let pacman keep track of those by creating pkgbuilds for them, naming them something like [packagename]-[version]-myown, and noting that it conflicts with the package in the Arch repos... is this correct?

    When you build a package with makepkg, the build function is responsible for installing the files that will be contained in the package under ${BUILD_DIR}/pkg. That directory will be tar'ed and compacted to make your final package. When you install it with pacman, will be created the file  /var/lib/pacman/local/<name of your package>/files which will list all the files owned by your package. So pacman can know how to remove them when you ask it to be deleted.
    About your 2nd. question, you are quite right. The only correction is that the name of your new package should be something like "package-myown-version". You should put the old name in the conflicts and provides directive of the PKGBUILD. You should read the wiki about ABS. With it, you can get a copy of all PKGBUILDS for your current repositories, so you can change what pleases you more.

Maybe you are looking for

  • Mail address book and my Address Book.app are different

    I tried to delete Plaxo. Now when I access my address book from Mail, I don't have the 3rd column containing phone numbers, addresses, etc. However my AddressBook.app has all that information, but it doesn't work with Mail. I click on an address with

  • Can't manually sync songs, just albums,playlist, etc.

    I don't want all the songs in one album, just a few songs from a certain album, but I can't find out how to sync just a song from an album. All the extra songs are taking up unnecessary space. I clicked on manually sync artist, playlist, and album bu

  • Mac OS X doesn't mount dvd's

    Hi, Since this afternoon, Mac OS X doesn't mount my dvd's when I insert them into my computer or external dvd-writer. You can hear the cd spinning, but it doesn't come up onto my desktop. I've checked the dvd button at finder preferences, "view this

  • Merry Christmas! iTunes won't run on my desktop machine

    Hi! Operating System - XP pro I have recieved a nice new iPod nano for crimbo. I already had a previous version of iTunes on my desktop as a friend was using it for their mini some time ago. I installed all the software which came with the new nano a

  • If i get my iphone stollen is there any chance i could track my iphone?

    i just want to know if i could track my iphone because i rememeber that i had a app called find my iphone so i dont know i just want info