[SOLVED] Optional dependencies ARE orphans

According to pacman. "pacman -Qdt" lists all unneeded dependencies, including those that are optional. https://wiki.archlinux.org/index.php/Us … OptDepends says that it shouldn't be the case in pacman 4.1, but it is. Is there another way of listing orphans and not optional dependencies? Other than setting them to manually installed.
Last edited by mooop12 (2013-05-18 17:27:36)

There are currently 2 ways to do this:
1) convert optdeps to deps with makedep then use "pacman -Qdt" as usual
2) use pkg-list_true_orphans (depends on pyalpm in [extra])

Similar Messages

  • [SOLVED] pacman log optional dependencies

    Hi,
    Coming from ubuntu, just been trying Arch to get to know better the linux system and try a more KISS approach. I really like it, however I had a few troubles on the way which I am resolving slowly.. however concrenng pacman, maybe I am blind but I can't find a way to get all the messages displayed during some package installation in the pacman.log ; in particular all the optional dependencies are not listed there..
    Is there a way to get the full pacman log as shown during the installation in a log file ?
    Last edited by Alain2 (2009-11-08 02:05:52)

    Hi All,
    I saw this and had to take up the challenge.
    How's this? It's pure sed at work. It shows both required and optional dependencies.
    pacman -Qi | sed -n '/^Name/,/^Required By/{ /^Version/,/^Provides/d; /^Required By/d; /^Name/{x;p;x}; p }'
    This is a command line version of course so just make an alias for it in .bashrc. If you want to log it then create a cron script to update it. By the way this should alleviate the multi-line issue you were having as I did some reverse thinking on this. I just eliminated what we didn't need as opposed to just trying to find what we did need. Sometimes that works better. 
    Here's an example output: (The actual output is nice and tidy. Pasting into the forum here mucked the alignment up. ) lol!
    Name           : pcmciautils
    Depends On     : glibc  sysfsutils  module-init-tools>=3.2pre9 
    Optional Deps  : None
    Name           : pcre
    Depends On     : gcc-libs 
    Optional Deps  : None
    Name           : perl
                     perl-archive-tar=1.52  perl-autodie=2.06_01 
                     perl-attribute-handlers=0.85  perl-autoloader=5.68 
                     perl-b-debug=1.11  perl-b-lint=1.11  perl-base=2.14 
                     perl-bignum=0.23  perl-cgi=3.43  perl-class-isa=0.33 
                     perl-compress-raw-bzib2=2.020  perl-compress-raw-zlib=2.020 
                     perl-constant=1.17  perl-cpan=1.9402  perl-cpanplus=0.88 
                     perl-db_file=1.820  perl-dprof=20080331.00 
                     perl-data-dumper=2.124  perl-devel-ppport=3.19 
                     perl-devel-peek=1.04  perl-digest=1.16  perl-digest-md5=2.39 
                     perl-digest-sha=5.47  perl-encode=2.35 
                     perl-encoding-warnings=0.11  perl-exporter=5.63 
                     perl-extutils-cbuilder=0.2602  perl-extutils-command=1.16 
                     perl-extutils-constant=0.22  perl-extutils-embed=1.28 
                     perl-extutils-install=1.54  perl-extutils-makemaker=6.55_02 
                     perl-extutils-manifest=1.56  perl-extutils-parsexs=2.2002 
                     perl-file-fetch=0.20  perl-file-path=2.07_03 
                     perl-file-temp=0.22  perl-filter=1.37 
                     perl-filter-simple=0.84  perl-getopt-long=2.38  perl-if=0.05 
                     perl-io=1.25  perl-io-compress=2.020  perl-io-zlib=1.09 
                     perl-ipc-cmd=0.46  perl-ipc-sysv=2.01  perl-libnet=1.22 
                     perl-locale-codes=2.07  perl-locale-maketext=0.13 
                     perl-locale-maketext-simple=0.18  perl-log-message=0.02 
                     perl-log-message-simple=0.04  perl-mime-base64=3.08 
                     perl-math-bigint=1.89  perl-math-bigint-fastcalc=0.19 
                     perl-math-bigrat=0.22  perl-math-complex=1.56 
                     perl-memoize=1.01_03  perl-module-build=0.340201 
                     perl-module-corelist=2.18  perl-module-load=0.16 
                     perl-module-load-conditional=0.30  perl-module-loaded=0.02 
                     perl-module-pluggable=3.9  perl-next=0.64  perl-net-ping=2.36 
                     perl-object-accessor=0.34  perl-package-constants=0.02 
                     perl-params-check=0.26  perl-parent=0.221 
                     perl-parse-cpan-meta=1.39  perl-pathtools=3.30 
                     perl-pod-escapes=1.04  perl-pod-latex=0.58 
                     perl-pod-parser=1.37  perl-pod-perldoc=3.14_04 
                     perl-pod-simple=3.07  perl-podlators=2.2.2  perl-safe=2.18 
                     perl-scalar-list-utils=1.21  perl-selfloader=1.17 
                     perl-shell=0.72_01  perl-storable=2.20  perl-switch=2.14 
                     perl-sys-syslog=0.27  perl-term-cap=1.12  perl-term-ui=0.20 
                     perl-test=1.25_02  perl-test-harness=3.17 
                     perl-test-simple=0.92  perl-text-balanced=2.0.0 
                     perl-text-parsewords=3.27  perl-text-soundex=3.03 
                     perl-text-tabs+wraps=2009.0305  perl-thread-queue=2.11 
                     perl-thread-semaphore=2.09  perl-threads=1.72 
                     perl-threads-shared=1.29  perl-tie-file=0.97_02 
                     perl-tie-refhash=1.38  perl-time-hires=1.9719 
                     perl-time-local=1.1901  perl-time-piece=1.15 
                     perl-unicode-collate=0.52  perl-unicode-normalize=1.03 
                     perl-version=0.77  perl-win32=0.39  perl-win32api-file=0.1101 
                     perl-xsloader=0.10  perlio-via-quotedprint=0.06 
    Depends On     : gdbm  db>=4.8  coreutils  glibc  sh 
    Optional Deps  : None
    Name           : perl-crypt-ssleay
    Depends On     : perl>=5.10.0 
    Optional Deps  : None
    Have a nice day!!
    Hope this helps
    P.S. Here's another little tool I wrote you might find useful. Add to .bashrc
       wtd: (What They Do)
    alias wtd="pacman -Qi | sed -n '/Version/,/Install\ Script/!p' | grep -F -A2 "
    Just type:
    wtd program name
    This will output the description for the program(s) with program name in the title.
    Example:
    wtd grep
    Name : cgrep
    Description : Provides many of the features of grep, egrep, and fgrep with
    greatly enhanced performance
    Name : grep
    Description : A string search utility
    Edit: Well, I just showed above with Perl (duh!) I'm still having a multi-line issue with the Provides line. Where a program shows more than one Provides entry it's only deleting the first line.  I'll work on it and get back. Other than that this works (at least it should).
    Edit2: Here is a slightly hacked form of the above command that at least fixes the perl issue. This will still fail when encountering other multi-line Provides lines. I think those are fairly rare so I'm leaving it at that. Sed does have limits and I'm sure a more complex command could be written using sed but I think this will get you in the ballpark.
    pacman -Qi | sed -n '/^Name/,/^Required By/{ /^Version/,/^Provides/d; /^ *perl.*$/d; /^Required By/d; /^Name/{x;p;x}; p }'
    Last edited by harryNID (2009-11-08 19:12:03)

  • [SOLVED]How to get orphaned packages that aren't optional dependencies

    On the pacman tips and tricks wiki page, I see there is a way to get orphaned packages, but this sometimes catches packages that are orphaned but are optional dependencies for other packages. Is there a way to get orphaned packages that are not optional dependencies? Also, I'm not sure if this is the right place on the forums for this question, so please let me know if there is a better place.
    Last edited by UnsolvedCypher (2013-05-22 00:16:47)

    Running
    # pacman -Rns python-docutils cdparanoia
    checking dependencies...
    :: abcde optionally requires cdparanoia: Paranoia ripping support
    should be enough. Now you know which package is not a real orphan and why.
    If you want a fugly script for that:
    $ pacman -Qi $(pacman -Qqdt) | grep -e Name -e "Optional For" | grep -v None | grep -B1 Optional
    Name : cdparanoia
    Optional For : abcde

  • Ssrs 2008 r2 error-Forward pointing dependencies are not valid

    In an existing SSRS 2008 r2, report, I am attempting to add a parameter called 'Customer_Category'. I am getting the following error message:
    The report paramter 'CustomerNumber' has a DefaultValue or a ValidVaue that depends on the report parameter 'Customer_Category'. Forward pointing dependencies are not valid.
    I am trying to determine how to fix this error. The 'CustomerNumber' is a parameter value that is obtained by reading from a dataset. In this dataset there are existing other parameters called 'Customer_Type' and 'Customer_Preference'. Both of these parameters
    obtain there values from selections that the user makes when the SSRS report is executing. There are no default values.
    I am trying to have the 'Customer_Category' be the same way where there are no default values and the user must select the parameter value when the report is executing. There should only be one value that the user can select from.
    The new parameter called 'Customer_Category' is the last parameter in the list of parameters. Does the order of parameters make a difference? If so, how can I move the 'Customer_Category' parameter in front of the customer_number parameter?
    Here is the sql that is used from obtaining a list of customers from the dataset for customer_number:
    SELECT   Distinct CustomerNumber   
    FROM   BridgeUserCustomer  
     WHERE
             Type =  @Customer_Type
      AND Preference = @Customer_Preference and Category = @Customer_Category
     GROUP BY CustomerNumber
    Would you tell me what is wrong and what I can do to solve the problem?

    Create independent datasets for each parameter and try once.
    Regards, RSingh

  • HT3819 Bought new iMac & moved (or thought so) music from old PC to new Mac. Now several hundred songs are orphaned on old PC; , I can "see" them with both machines turned on & iTunes open. "Missing" songs show in iMac Shared folder. How do I move & retir

    Bought new iMac & moved (or thought I had) all of my music from the old PC to the new iMac. Have discovered several hundred songs are orphaned on old PC; I can "see" them with both machines turned on & iTunes open. "Missing" songs show in iMac itunes Shared folder. How do I move them all so I can then & retire the old PC?

    From things you are saying, such as "shared folder" and having both machines on, it doesn't sound to me like you truly moved the whole iTunes collection. 
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    do not confuse moving your whole folder and library with moving just media files as in
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option key held down and guide it to the new location of the library.
    Macworld - How to transfer iTunes libraries between PC and Mac - http://www.macworld.com/article/46248/2005/08/shiftitunes.html

  • Check for optional dependencies when installing package

    When pacman installs a package is lists Optional Dependencies when applicable. Is there any way to get it to check whether they are installed or are there plans to get it to do so?
    Mark C

    Such an option is not available at the moment.
    https://bugs.archlinux.org/task/12708
    https://bugs.archlinux.org/task/15764 <- I think this is what you want
    https://wiki.archlinux.org/index.php/Us … OptDepends says Currently optdepends in pacman serve no purpose other than informational. It would be good to "improve" this somewhat.
    Last edited by karol (2011-05-16 15:53:25)

  • Empathy-Instant Messenger in testing-repo - optional dependencies?

    Hello,
    I've installed empathy from testing, which tells me I should also install the optional-dependencies. But this dependencies are not in saved in any repo, only in AUR?
    Is this a lapse?

    Hello,
    I've installed empathy from testing, which tells me I should also install the optional-dependencies. But this dependencies are not in saved in any repo, only in AUR?
    Is this a lapse?

  • How do I exclude optional dependencies?

    How do I exclude optional dependencies?
    Say when installing xorg, how do I exclude some of the font packages?  There are many font packages.  It says they are "dependencies", but I know they are optional since I just need 1 package that works in X.  (By the way, which package is smallest since I need at least 1?)

    You could install with "-Sd" which skips dependency checks.
    edit: "xorg" is a meta package, or group. In other words, 'pacman -S xorg' calls a set of packages, though they are not necessarily dependencies. In this case, you have the option to not install each component. When it asks "Install whole content?" simply say no, then you can go down the list and select on what you want.
    Last edited by aport (2008-02-20 23:58:38)

  • Optional dependencies

    Are there any plans for implementing optional dependencies? These are dependencies that are not required for a package to work but they will be used if installed.
    For example, I do not need arts installed with K3B.

    The problem is that your assumption, that an app will use a lib if it's installed, is wrong.  Most apps, I would say, to be able to use the lib will need to be compiled with that support built-in. However,  it will usually link itself to the library and will refuse to run if the library isn't installed.  So the depends isn't optional anymore. That's the reason behind the amarok-base and amarok-mysql packages.
    Debian has optional depends but also it seperates packages in small pieces. So the optional depends could be docs or devel packages.
    BTW, the k3b/arts example is a bad one for optional depends because k3b doesn't depnds on arts. It depends on kdelibs that in turns depends on arts. It's more of a dependency chain problem than optional depends. 

  • Package information -- optional dependencies of?

    Hi all.  Some packages have 'optional dependencies'.  Just as an example, yaourt has an optional dependency on rsync.  However, in the package information for rsync, there's no mention that it's an optional dependency of another package.  Is there anyway to get this information?
    The reason I ask is this -- occasionally I go through and clean out orphan packages.  I have a script that helps with this, allowing me to view the output of 'pacman -Qi' for each orphan package and choose whether or not to remove it.  However, I have, on occasion, broken ome piece of system functionality by removing a package that is an optional dependency, as that information isn't available. 
    I apologize if this is a topic that's been covered before, but the search terms I can think of come up with a LOT of hits.
    Thanks in advance,
    Jim

    expac "%n\n%o\n" -Q
    shows that on my system few packages have any opt deps.
    yaourt-git
    aurvote customizepkg rsync pacman-color
    or with optdeps descriptions:
    [karol@black ~]$ expac "%n\n%O\n" yaourt-git
    yaourt-git
    aurvote: vote for your favorite AUR packages customizepkg: automatically modify PKGBUILD during install/upgrade rsync: retrieve PKGBUILD from official repositories pacman-color: fully colorized output

  • Pacman: check if optional deps are already installed?

    Hi All,
    When I install a package, pacman suggest that I install other packages as optional dependensies like this:
    (11/11) installing totem [###############################################################] 100%
    Optional dependencies for totem
    gstreamer0.10-ugly-plugins: Extra media codecs
    gstreamer0.10-bad-plugins: Extra media codecs
    gstreamer0.10-ffmpeg: Extra media codecs
    lirc-utils: Infrared Remote Control plugin
    libepc: Publish Playlist plugin
    libgdata: YouTube Browser plugin
    bluez: Bemused plugin
    grilo-plugins: Browse sidebar (remote media)
    pyxdg: opensubtitles plugin
    Some of these are already installed on my system. I think it would be usefull that pacman checks if these are already installed. I would like something like this output:
    (11/11) installing totem [###############################################################] 100%
    Optional dependencies for totem
    gstreamer0.10-ugly-plugins: Extra media codecs (*installed*)
    gstreamer0.10-bad-plugins: Extra media codecs
    gstreamer0.10-ffmpeg: Extra media codecs
    lirc-utils: Infrared Remote Control plugin
    libepc: Publish Playlist plugin (*installed*)
    libgdata: YouTube Browser plugin
    bluez: Bemused plugin
    grilo-plugins: Browse sidebar (remote media)
    pyxdg: opensubtitles plugin
    What are your thoughts on the subject?
    Best regards,
    Cedric

    Leonid.I wrote:
    Shark wrote:That would be great. It would be also great that the optional dependencies would be deleted if the explicitly installed package is gone. I don't know why this feature isn't already integrated. Does somebody have patch?
    I, for one, disagree. You see, hard dependencies are justified (as in there are some guidelines as to how assign them), optdeps are not (there can be cross-repo optdeps from lower-level repo to a higher-level one; if you promote optdeps to real deps, there can be dependency cyces, etc.). In pacman, otdeps = comments. So, I would really prefer to keep it that way.
    It could be implemented some security measures that optdepends wouldn't be removed if this optdepends are tied to other packages too - like real dependencies are. It could be implemented the same system for optdepends as is for real dependencies.

  • In iTunes on my windows 7 PC, the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's.

    In iTunes on my windows 7 PC, in the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's on several of the preferences pages.  The Apple people at the store did not help.  I have lownloaded the latest version of iTunes and this is still an issue.  HELP.

    Is there really nobody else with this problem? Really?

  • When downloading is complete, I can not see, run, nor access the file; it only appears in the "Downloads" window (and not the specified folder) and the only options permitted are to delete it, or to go to the download web site; what's blocking it?

    My PC's OS is 'MS Windows Vista Home Premium'. As my initil question states: When downloading, after the download completes, I can not see, run, nor access the file in it's designated folder. The download only appears in the "Downloads" window and the only "Right Click" options permitted are to "Remove From List", "Select All", & "Copy Download Link" I also can not double click to run it. What's blocking it?
    I have a similar problem when accessing .zip files that are attachments to my emails. Here, however, I can place the file in a designated folder, however, the .zip file and it's compressed content files are file-typed as "FireFox Document" and I get permissions errors when running an unzip tool.
    Why are my download files being quarantined ??? Is there a security setting option I need to change???
    To get around this, I'm using IE to download and install these files, but switching back & forth between FireFox & IE is a real pain.

    It's your anti-virus not working correctly while scanning. You can turn off the option to scan in Firefox's '''about:config''' by filtering for '''browser.download.manager.scanWhenDone''' and double-clicking that line to change the value to '''false'''

  • The history library only shows/searches this month's history when my options settings are set to save 90days, how do i get to the other 2 months?

    My question says it all. The history library shows "Today", "Last 7 days", and "This month". Setting in options window are to save browsing history for 90 days. Where is the rest of the browsing history?

    The default in Firefox 3 versions is to keep history for 180 days (6 months).<br />
    In Firefox 4+ that has changed to a maximum number of pages that is kept.<br />
    * http://blog.bonardo.net/2010/01/20/places-got-async-expiration
    You can look at these prefs on the about:config page to see for how long that you keep history in Firefox 3 versions.
    * http://kb.mozillazine.org/browser.history_expire_days (180) (also affects saved form data)
    * http://kb.mozillazine.org/browser.history_expire_days_min (90)

  • My external LaCie drive gets an error message "the disc you inserted was not readable by this computer." The only options offered are "ignore" or "eject" Disk Utility sees the disc but does not give a repair option. What can I do?

    When I plug in my external LaCie drive I get an error message "the disc you inserted was not readable by this computer."
    The only options offered are "ignore" or "eject"
    Disk Utility sees the disc but does not give a repair option.
    What can I do?

    The good thing about mac-centric resellers such as OWC, is they have people on staff that can answer questions without you buying things first. They also have how-to information, and instructions are included in many of their products. I saw a link to watch a DIY video in one of their pages; an example of a RAID (with its own power supply) is shown on their drives page. Also a few in there, with no power supplies, for less money.
    If I were looking to backup and perhaps also have a partition for a system clone, I'd consider something like one of these: http://eshop.macsales.com/shop/firewire/1394/USB/EliteAL/eSATA_FW800_FW400_USB
    Some ideas on the RAID backup methods appear in google search, some of the pages are ideas and concepts; and the better ones also warn about using RAID for the only backup plan.
    Oh, OWC has live chat. Haven't tried it, nor have I bought anything from them. I have what appears to be two products from them, but have not used either. One is in a box as-new, but has only USB2.0 ports & my Macs needed FW400/800. It has been said their RAM is a good way to upgrade, too. But I can't confirm!
    A 'RAID-ready' unit for backup may be more versatile for just that, but I have not checked into these details. I use single HDDs in powered enclosures, and usually manually make backup clones to FW drives, of bootable OS X systems. Some of the OWC raid-ready use eSATA ports so that may not be viable for a computer without them.
    The unused in-box external drive I have is like the base model in the link above. However mine is USB2.0 (maybe) and won't boot my older Macs due to hardware variance; and my preference would be for FireWire options, these models do offer that. But the one I have does not. Dual 500GB HDDs, and they could be used in tandem as a RAID. That would be a choice set up in software. I'm not sure and not interested enough to read up just now.
    My backup method is not automatic, or a moving backup plan, if I don't get a move-on and make full system clones. I do make copies of photos and documents the manual way, to USB external drives; and occasionally backup to DVD or CD media. And USB flash, that helps to move files between computers without need to use file sharing via wi-fi. {Like Why fly? Walking is better exercise unless one is a bird. Squawk!}
    https://www.google.com/#q=raid+backup+mac
    Depending on the ports in your Mac, you may be able to use other cables to attach between a backup or externally enclosed hard disk drive with multiple partition and bootable clone in one of them. Not sure about the Thunderbolt, and where that is the main port, adapters are required to access other devices, as allowed.
    Anyway, I am going on and on, yet not really saying anything.
    My ideas would not be all that interesting to follow as a backup
    plan when matching available newer hardware to task, but you
    can get some into better ideas if you are not in a rush. Get a
    good setup and then look into more an betterer stuff.
    Good luck & happy computing!

Maybe you are looking for