Instructions to install packages should not specify their dependencies #571

Open
opened 2023-03-09 15:56:55 +00:00 by jn64 · 8 comments

In step 4 of How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs, users are told to "install the driver and its dependencies" with this command:

sudo dnf install gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686

Problems with explicitly specifying dependencies:

  • Fragile—Dependencies may change
  • Unintentional packages left installed—If a user later decides to remove xorg-x11-drv-nvidia\* (according to RPM Fusion) or akmod-nvidia, the other packages like gcc, kernel-headers, kernel-devel will not be autoremoved even if the user has no other installed packages that depend on them.
  • Unnecessarily long

Based on Howto/NVIDIA - RPM Fusion, the command can be reduced to:

sudo dnf install akmod-nvidia
In [step 4 of How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs](https://docs.fedoraproject.org/en-US/quick-docs/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops/#_step_4_install_the_driver_and_its_dependencies), users are told to "install the driver and its dependencies" with this command: ``` sudo dnf install gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686 ``` Problems with explicitly specifying dependencies: - Fragile—Dependencies may change - Unintentional packages left installed—If a user later decides to remove `xorg-x11-drv-nvidia\*` ([according to RPM Fusion](https://rpmfusion.org/Howto/NVIDIA#Uninstall_the_NVIDIA_driver)) or `akmod-nvidia`, the other packages like `gcc`, `kernel-headers`, `kernel-devel` will not be autoremoved even if the user has no other installed packages that depend on them. - Unnecessarily long Based on [Howto/NVIDIA - RPM Fusion](https://rpmfusion.org/Howto/NVIDIA#Current_GeForce.2FQuadro.2FTesla), the command can be reduced to: ``` sudo dnf install akmod-nvidia ```
Contributor

@t0xic0der ^ could you take a look please?

@t0xic0der ^ could you take a look please?

Letting the program to be installed pull in its dependencies seems reasonable to me. But we would have to get a new image as well.

Letting the program to be installed pull in its dependencies seems reasonable to me. But we would have to get a new image as well.
Contributor

@jn64 valid point.

Could you please make a pull request against the docs website to make that correction?

I am a bit caught up right now so if you cannot, I can make the said changes later.

@jn64 valid point. Could you please make a pull request against the docs website to make that correction? I am a bit caught up right now so if you cannot, I can make the said changes later.
Contributor

Issue tagged with: good first issue

Issue tagged with: good first issue
Contributor

Metadata Update from @hankuoffroad:

  • Issue untagged with: good first issue
**Metadata Update from @hankuoffroad**: - Issue **un**tagged with: good first issue
Contributor

Issue tagged with: help wanted

Issue tagged with: help wanted
Contributor

I have made some grammatical changes to the doc, and need to make a couple minor cosmetic changes to remove a box for a bullet point. This should ease right into that change as well.

I have made some grammatical changes to the doc, and need to make a couple minor cosmetic changes to remove a box for a bullet point. This should ease right into that change as well.
Contributor

Metadata Update from @hamrheadcorvette:

  • Issue assigned to hamrheadcorvette
**Metadata Update from @hamrheadcorvette**: - Issue assigned to hamrheadcorvette
Sign in to join this conversation.
No milestone
No project
No assignees
6 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Docs/quick-docs#571
No description provided.