[SOLVED] How to properly install optionnal dependencies ?

Hi,
As stated in the title, I don't know how to install optionnal dependencies : (let's take an example)
I noticed that with libva comes two optional dependencies libva-intel-driver and libva-vdpau-driver, and as I have an intel graphic card, I would like to install libva-intel-driver.
But to keep my package tree quite clean, I would like to install it as a dependency of libva, this way, if someday I want to remove libva, libva-intel-driver will be removed too.
In the pacman manual, the option --asdeps seems to be useful to install a package as a dependency (but it doesn't seems to need to specify which package it is a dependency for).
So my question is, does this mean that libva-intel-driver will be removed when I don't need libva anymore ?
And more generally, how pacman manage dependency ?
As a matter of fact, I tried to install and then remove libva-intel-driver, but it never said that libva might need it.
tl;dr : I want to install an optionnal dependencies exactly like a regular dependencies would be installed : how could I do that ?
Edit:
the answer is here : https://wiki.archlinux.org/index.php/Us … OptDepends
Last edited by gravitezero (2012-10-10 12:04:25)

If you install it with --asdeps, which package it is a dependency for is listed in the packages info file that goes into pacman's database.
Imagine you have packages A B and C, C is a dependency of both A and B, but for whatever reason you install C first with "--asdeps", then you install A and B.  If you later remove A with "pacman -R A" no dependencies will be removed, but if you use "pacman -Rsn A" A will be removed as will all of it's dependencies that are not needed by any other package.  So in this case C would still not be removed as B still needs it.  If you then "pacman -Rsn B" B and all it's dependencies including C would be removed.
That is how it works for normal dependencies.  I don't believe optional dependencies have database entries in the "required by" field as they are not required, they are optional.  So if C were only an optional dependency of A and B, it would never be removed by removing A and/or B (AFAIK).
If you install libva-intel-driver with "--asdeps" then it will likely show up in "pacman -Qdt" output.  If you later install anything that has libva-intel-driver as a regular dependency, then later remove that package with "pacman -Rsn" libva-intel-driver will be taken away with it - it is doubtful you would want this.  So don't install optional dependencies "--asdeps"
They are optional, you are opting for them, install them normally.
Alternately, and as a direct answer to your real question, I believe the only way to do with would be to modify the package info of libva to switch libva-intel-driver from optional to regular dependency.  This would be easy to do, but I don't know if it's easy to automate, nor would it survive udates to libva, it'd have to be redone.
Last edited by Trilby (2012-10-10 11:21:06)

Similar Messages

  • [SOLVED] how i can install this packages ?

    hi
    im try to compile a software (xfardic : a persian dictionary)
    and this software need this packages to compile
    1. aspell-dev
    2. libxml2-dev
    3. libgnome-desktop-dev
    4. libnotify-dev (0.7.0 minimum)
    5. libsqlite3-dev
    6. libespeak-dev
    but i cant install this packages our find this sources to compile
    please help me
    Last edited by omidimo (2012-01-03 14:36:25)

    omidimo wrote:
    karol wrote:Please remember to mark the thread as solved.
    how can i remark . i cant find options
    Please read the forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

  • [Solved] How to list installed AUR packages ?

    Hi,
    I use "packer" to install AUR packages.
    How can I get a list of installed AUR packages ?
    Thanks for your help
    - PierreR
    Last edited by PierreR (2011-12-06 11:37:40)

    You should focus your Google searches to the forum
    site:bbs.archlinux.org how to list installed AUR packages
    https://www.google.com/search?q=site%3A … 78&bih=977 (I used your title for the search)
    You can set the settings to pick only the hits from e..g the last year.

  • [SOLVED]How do I install sqldeveloper-3.2.20.09.87-macosx on Mac OSX 10.7.5

    Hi,
    SOLVED! Whit the right unarchiver (arkivverktyg.app) it was a walk in the park.
    I unpacked the file sqldeveloper-3.2.20.09.87-macosx.gz and got a slightly bigger file sqldeveloper-3.2.20.09.87-macosx with no dmg file extension, and of course if I double click it as the instruction tells me it can´t find any asociated program to start it with.
    I could not find anything in this forum how I should continue. Probably it is very simple if you are a Oracle type of person..
    My set up: Mac OS X Lion 10.7.5
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
    I will try with the latest Java 2013 update 002 if it helps.
    Regards,
    Göran
    Edited by: 992601 on 2013-mar-07 21:44

    The instructions for installing SQL Developer are provided on the download page. I have a more detailed set of steps on my blog here for OS X.
    http://www.thatjeffsmith.com/archive/2012/07/install-oracle-sql-developer-on-os-x-mountain-lion/

  • [SOLVED] How to really install Open VMware Tools?

    I tried the steps shown in the wiki, but it's not working at all. I have Arch+KDE installed in VMware Player 5. The steps I followed for the installation of VMware tools are:
    pacman -S open-vm-tools open-vm-tools-modules
    systemctl enable vmtoolsd.service
    But after a reboot the Tools doesn't seem to work properly, even If I try to restart with the tools enabled the systems hangs on the process.
    Some help will be really appreciated.
    Cheers.
    Last edited by AurosGamma (2012-12-02 05:09:42)

    There are some known issues regarding the current versions of the open VMWare tools, check this topic.
    The steps you took provide minimal functionality, at least keeping the clock in sync with the host and handling screen resizing. For copy and paste and shared folders, the wiki has some additional info.
    The system seems to hang on reboot, but proceeds normally after about 90 seconds (it's how long systemd waits before forcefully killing the vmtoolsd daemon).
    Some tips to work around current issues:
    - don't use the latest version of xorg-server (use xorg-server 1.13.0-3 instead)
    - issue a 'killall -9 vmtoolsd; systemctl poweroff' to power off the system

  • [SOLVED] Which packages are installed as dependencies when upgrading?

    Hello,
    When upgrading, I'd like to know which packages are upgraded and which ones are installed as new dependencies.
    How can I do that?
    The problem for me here is that I'd like to know which package is triggering an install of mariadb (which I don't need nor want).
    Thanks in advance!
    Last edited by lilorox (2014-04-30 07:14:03)

    mpan wrote:
    This will warn you about which package can't be installed because of mariadb not being installed
    pacman --your_usual_options --ignore mariadb
    Exactly what I needed
    This way I get the entire dependency tree so I know I can blame nepomuk-core.
    I knew the mariadb dependency came from KDE (baloo precisely) but I had no idea which package needed it.
    $ sudo pacman -Su --ignore mariadb --ignore mariadb-clients
    :: Starting full system upgrade...
    :: Replace shared-color-profiles with extra/colord? [Y/n]
    resolving dependencies...
    warning: ignoring package mariadb-5.5.36-1
    warning: ignoring package mariadb-clients-5.5.36-1
    warning: cannot resolve "mariadb-clients", a dependency of "percona-server"
    warning: cannot resolve "mariadb", a dependency of "akonadi"
    warning: cannot resolve "akonadi", a dependency of "kdepimlibs"
    warning: cannot resolve "kdepimlibs", a dependency of "baloo"
    warning: cannot resolve "baloo", a dependency of "nepomuk-core"
    :: The following package cannot be upgraded due to unresolvable dependencies:
    nepomuk-core
    :: Do you want to skip the above package for this upgrade? [y/N]

  • How to properly install updates with kernel changes on MBP w/ SSD

    I downloaded and installed Yosemite security update 2015 003, and on reboot it would have a progress bar of the updating which would not complete and would show the prohibited sign (circle with a line through it).
    I tried the following:
    I held the power button to shut it down and perform a hard restart, the problem would not go away.
    Tried clearing the PRAM, but since it was in the middle of the update reboot, it was busy and would not properly clear the PRAM. No chimes.
    I tried holding option to select the boot drive manually, but that did not work either.  I could not even get to the boot drive selection screen. Just the continued seeing prohibited sign.
    I was able to plug in my external hard drive and boot from that after multiple tries to use Disk Utility to restore my backup partition onto the internal SSD. Luckily, I frequently backup, so I didn't lose any data by being forced to wipe my SSD and restore my backup.
    This is on a 13" MBP 7,1 (Mid 2010) with an aftermarket Intel SSD and 8GB of aftermarket RAM. Had TRIM enabler installed and on when downloading and installing the update. Is that the cause? After researching this and coming up with no solution, I discovered this security update seems to change the kernel. Is this kernel change conflicting with TRIM enabler? What causes this hanging problem when attempting to update? I have done multiple "Computer must restart to install changes" updates on this SSD in the past without this problem happening.

    I don't know enough to explain it. I've read that you need to disable TRIM before upgrading to Yosemite. And disable it before doing updates. Updating may not always cause problems, but you never know till it happens. Enabling TRIM disables Apple's security measures built in and this may be why a Security Update affected it.
    Here is one article on TRIM with Yosemite:
    https://www.cindori.org/trim-enabler-and-yosemite/

  • How to properly install External Hard Drive

    I'm trying to install my external eSATA hard drive on my 7216 HD DVR and it doesn't seem to be working. I get the notice to reboot the box and then I get the warning about it detecting the drive and that everything else on it will be deleted. I then click ok to accept and after that i get nothing. I then check my DVR recorded status and it looks like it only has the internal drive, percentage used is the same. How to i make sure the external is installed and what type of indication will i recieve? Does the DVR format the hard drive and if so does it let you know when it's completed?

    I have the same issue.  I think the drive needs to be formatted in a format compatible with the set-top box.  I can't locate that ability in the menus for my Motorola box.  Anyone know how to format using the box?  Apparently reformatting via the computer is not acceptable???

  • [SOLVED] how do I install Gnome 2.3 ?

    Hi,
    I am new to Arch and really like gnome 2.3 that came wth Ubuntu 10.04, so I would like to get this up with Arch. How can I do that? I can't find a list of all packages available through pacman, and suspect it is not there or I have to access some special repository.
    Thanks for any help,
    Mark
    Last edited by mark1977 (2011-11-03 22:47:17)

    Welcome to the forums, mark1977. Please read our forum etiquette posting guidelines.
    Note that you are supposed to help yourself as much as possible before asking for help. As karol stated there is already a bunch of topics concerning Gnome 2. Thus some search effort before posting would have been in order. Only then or if any specific problem remains unsolved open a thread, preferably of your own, and ask.
    Don't hesitate then. We are always glad to help if you have done your homework (and remain eager to go on learning).
    Finally, please mark this thread as [SOLVED] by editing the title of your first post.

  • Does anyone know how to properly install Flashplayer on 64-bit Windows 7?

    I have uninstalled and reinstalled as administrator numerous times.  Control Panel tells me I have version 11.2.202.235 installed for both PlugIn and ActiveX components.  Neither Firefox nor IE will recognize that flashplayer is installed.  http://helpx.adobe.com/flash-player.html will not display a box identifying the currently installed version.  http://speedtest.maxis.com.my/page1.html will not display.  Any ideas?

    Can you try a clean install, as described in http://forums.adobe.com/thread/928315 ?
    If that does not help, please list all files you have in
    C:\Windows\system32\Macromed\Flash
    C:\Windows\syswow64\Macromed\Flash
    also list the contents of the FlashInstall.log files from both above folders.
    [topic moved to Flash Player forum]

  • How to properly install Lion - fresh HD install

    I purchased Mac OS X 10.7 Lion from the Mac App Store on the first day of availability - took about 30 minutes or less to download it completely. I burned it to a DVD and also imaged it to a USB flash drive to use in future installs.
    To get at the InstallESD.dmg image needed to burn to DVD+R or USB flash drive, right-click on Show Package Contents for the "Install Mac OS X Lion.app" file after downloading it. You will see a folder called "Contents" - open this folder. Then open the "SharedSupport" folder and you will find the DMG file you need to burn this DMG file to your media of choice.
    Too easy. I am running OS X Lion on my Mac Pro (MacPro1,1) and MacBook (MacBook5,1). The only problem I am seeing is file sharing is borked in OS X Lion, but this is a well-documentated problem that is going on.

    Ok thank you. And with that disk I can install it on an Mac or do I always have to go to the App store and download it for that Mac? My brother does not want Lion yet, so if we download it on his mac can we delete it and download it another time again?

  • How to properly install airport extreme?please help

    please help me install this airport extreme
    i think im doing everything right but i dont know
    please help
    thanx

    When changing ISPs (or networking equipment) it's always a good idea to start from "scratch" in configuring your equipment.
    I would recommend that you do the following as a minimum:
    Power-down the modem, AirPort base station, and computer(s).
    While all of the devices are powered-down, perform a "factory default" reset on the base station. This will get it back to its "out-of-the-box" configuration and make setting it up much easier, especially if you use the "Assist me" process within the AirPort Utility. (ref: Resetting an AirPort Base Station or Time Capsule)
    After the base station resets, go ahead and power it back down.
    Power-up the modem; wait at least 10-15 minutes.
    Power-up the base station; wait at least 5-10 minutes.
    Power-up your computer(s).
    In this basic configuration, computers connected to the base station, either by wire or wireless (as appropriate for the base station type), should now be able to access the Internet through the ISP's modem. Once Internet connectivity has been verified, you can use the AirPort Utility to configure the base station for wireless security and any other desired options.

  • [SOLVED] How can I install libstdc++-libc6.2-2.so.3 for Eternal SPU?

    I know I need to add a repository using yum-config-manager --add-repo but I don't know what repository? I tried searching google for the debian repositories but I could not find an appropriate url. Can I even use yum in arch?
    Last edited by SteveDeFacto (2013-09-09 01:33:10)

    WonderWoofy wrote:
    You are trying to use yum on Arch Linux with Debian repositories?  I think you are a bit confused here.
    It is not a good idea to have more than one thing managing packages on a given system.  That said, it still does make sense to have a different package manager in some cases.  For example, if you wanted to create a chroot of a different distribution, you could use that other distribution's package manager to install the system to the desired location.
    Maybe it would be helpful if you actually indicated what it was you were trying to accomplish, and not just the point at which you are stuck.  Give us a frame of reference of what the overall goal of using yum on Arch might be.
    Edit: BTW, to add to the first sentence of my post here.  Yum is the Red Hat/Fedora/rpm package manager, while Debian uses the aptitude/apt-get/deb package management system.  So you are effectively trying to use repos with *.deb files with a package manager that requires *.rpm packages.
    Yeah, it probably would have been more effective to explain what I am trying to do since I didn't fully understand what yum even was.. Basically, I am trying to get ePSXe to work with eternal spu but it keeps crashing and saying "libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory[steven@" I assume that means I need to install a dependency. As I understand from a random forum post it is part of the compat-libstdc++-296 package which is installed though yum.
    EDIT: Also I should mention that I already tried installing libstdc++ from official repositories and AUR by they didn't work. I assume the version is the problem.
    Last edited by SteveDeFacto (2013-09-07 22:07:39)

  • [SOLVED] how to list installed leaf packages?

    What's the best way to get a list of installed packages that are not a dependency of another installed package? (leaf packages)
    Last edited by TheCox (2010-05-05 19:40:31)

    nevermind. I thought I had checked the pacman man, but I guess not.

  • I need to figure out how to properly install the pixel film studio plugins, can someone assist me please and thank you !

    Need some assistance, if anybody has successfully installed plugins by "pixel film studios" i would appreciate the help i'm very new to the plugin world.

    Is this for FCP-X?
    You need to post here:
    https://discussions.apple.com/community/professional_applications/final_cut_pro_ x
    MtD

Maybe you are looking for

  • What r the new patches and plugin for MI7.0

    Hi Please tell me what are the patches and plugins required for developing MI7.0 application?? Also send me the link for downloading this patches and plugins... Regards Ruturaj

  • Extend org unit of materials

    Hi, I have an issue I have created material Ex 32 in combination of plant xu01 and storage location xu01. Now my requirement is to extend this to plant zu01 and storage location zu01. can any one give an idea. Regards Sasi

  • Parallax Issues?

    Why does parallax not seem very 3D and slow is there an adjustment for sensitivity rather than on/off?  Especially horizontally rather than vertically...

  • Updated to latest iTunes--noticed locking up

    Install went fine- had 10.3, overwrote it and put on latest, 10.7. I've noticed some really normal procedures..lock it up.  10.3, my previous version...never locked up. Like I was just highlighting a group on tunes to change the artist name..........

  • HT1329 I am trying to put my iPod tunes on my new computer

    I am trying to put my tunes from my Ipod to my new computer and every time I click the Ipod picture on my desk top it disappears and shows me only whats on my computer