- Brainiarc7 / prime-select PKGBUILD for Arch Linux
- ArchPKGs
- A Straightforward Guide on Installing nvidia-prime-select-git on Arch Linux, Manjaro and Anarchy
- Table of Contents
- Installation link
- Install with Pacman (Default) link
- Install with Yay (Beginner Friendly) link
- Updating link
- Update with Pacman (Default) link
- Update with Yay (Beginner Friendly) link
- Uninstallation link
- Uninstall with Pacman (Default) link
- Uninstall with Yay (Beginner Friendly) link
- More Guides
- A Complete Guide on Installing dune-functions on Arch Linux/Manjaro/Garuda
- Installing mpfr-static with CLI on Arch-Based Linux (Manjaro/EndeavourOS)
- How to Install python-pylint-celery with Single Line of Command on Arch Linux, Manjaro and Garuda
- A Quick Guide on perl-tree-dag-node Installation on Arch-Based Linux (Manjaro, RebornOS)
- How to Install pop-to-8bit (Step-by-Step Guide) on Arch Linux/Manjaro/Anarchy
- outguess-png-git Install/Update/Uninstall Guide on Arch Linux, Manjaro and Parabola
- Brainiarc7 / prime-select PKGBUILD for Arch Linux
Brainiarc7 / prime-select PKGBUILD for Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
# Maintainer: Dennis E. Mungai |
pkgname=nvidia-prime |
pkgver=0.7 |
pkgrel=1 |
pkgdesc=»Tools to enable NVIDIA’s Prime.» |
url=»https://launchpad.net/ubuntu/+source/nvidia-prime» |
arch=(‘x86_64’ ‘i686’) |
license=(‘GPLv3’) |
depends=(‘lightdm’ ‘bbswitch’ ‘python’ ‘bash’) |
optdepends=(‘nvidia’ ‘lightdm-gtk3-greeter’) |
makedepends=() |
conflicts=() |
replaces=() |
backup=() |
#install=’nvidia-prime.install’ |
source=(«https://launchpad.net/ubuntu/+archive/primary/+files/$_$.tar.gz») |
sha256sums=(‘SKIP’) |
package() |
cd «$/$» |
mkdir -p «$»/usr/ |
mkdir -p «$»/usr/share/ |
#Install PRIME |
install -m755 $srcdir/nvidia-prime/get-quirk-options $pkgdir/usr/bin/get-quirk-options |
install -m755 $srcdir/nvidia-prime/prime-offload $pkgdir/usr/bin/prime-offload |
install -m755 $srcdir/nvidia-prime/prime-select $pkgdir/usr/bin/prime-select |
install -m755 $srcdir/nvidia-prime/prime-supported $pkgdir/usr/bin/prime-supported |
install -m755 $srcdir/nvidia-prime/prime-switch $pkgdir/usr/bin/prime-switch |
#Add nvidia-prime-quirks |
install -m755 $srcdir/nvidia-prime/prime-quirks $pkgdir/usr/share/nvidia-prime/prime-quirks |
#Add systemD service |
install -m644 $srcdir/nvidia-prime/debian/nvidia-prime.service $pkgdir/usr/lib/systemd/system/nvidia-prime.service |
#Add LightDM |
install -m644 $srcdir/nvidia-prime/90-nvidia.conf $pkgdir/usr/share/lightdm/lightdm.conf.d/90-nvidia.conf |
#Other Information |
install -m644 $srcdir/nvidia-prime/debian/changelog $pkgdir/usr/share/doc/nvidia-prime/changelog.gz |
install -m644 $srcdir/nvidia-prime/debian/copyright $pkgdir/usr/share/doc/nvidia-prime/copyright |
> |
# vim:set ts=2 sw=2 et: |
ArchPKGs
A Straightforward Guide on Installing nvidia-prime-select-git on Arch Linux, Manjaro and Anarchy
Referring to nvidia-prime-select-git ‘s own outline, it is «A collection of shell scripts that makes it possible to use the NVIDIA GPU on a Optimus Laptop, similar to the feature provided by the nvidia-prime package in Ubuntu. Forked by wildtruc». To install and update this package ( nvidia-prime-select-git ) from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distributions (e.g. Manjaro, EndeavourOS, Garuda, Parabola, Anarchy, RebornOS) is relatively straightforward. This guide will taught you how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper like yay .
Table of Contents
Installation link
Two common methods are used to install nvidia-prime-select-git from AUR. pacman is what you’re looking for if you’re an experienced Linux user and understand the concept of how packages are built. Otherwise, yay is an acceptable alternative to install packages without the need to review PKGBUILD and build packages with makepkg on your own.
Install with Pacman (Default) link
sudo pacman -S --needed git && git clone https://aur.archlinux.org/nvidia-prime-select-git.git && cd nvidia-prime-select-git && makepkg -si
- Install git if it’s not on your system.
- clone the package’s git repository from upstream URL.
- cd into the folder of the repository.
- Use makepkg to build the package. Also, it will automatically be installed with pacman if built successfully.
Install with Yay (Beginner Friendly) link
yay -S nvidia-prime-select-git
Updating link
Just like installing AUR packages, updating them is fairly the same. Simply pull it from source then re-build it. However, it is still recommended to upgrade your whole system first with sudo pacman -Syu before updating any packages to avoid breaking your system, since Arch is a rolling-release Linux distro.
Update with Pacman (Default) link
git pull && makepkg -si
- pull from the package’s git repository.
- Build the package with makepkg , then update it with pacman .
Update with Yay (Beginner Friendly) link
Uninstallation link
Removing packages is the most uncomplicated of these three,just choose whether to purge the dependencies that no longer required by other packages and the configuration files used by the package.
Uninstall with Pacman (Default) link
sudo pacman -R nvidia-prime-select-git
sudo pacman -Rs nvidia-prime-select-git
sudo pacman -Rns nvidia-prime-select-git
Uninstall with Yay (Beginner Friendly) link
yay -R nvidia-prime-select-git
yay -Rs nvidia-prime-select-git
yay -Rns nvidia-prime-select-git
Learn more information about how to build AUR packages on Arch Linux, please refer to this guide from NoCache.
More Guides
A Complete Guide on Installing dune-functions on Arch Linux/Manjaro/Garuda
Based on dune-functions’s definition, it is «Abstractions for functions and discrete function space bases». To get this package (dune-functions) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and ArcoLinux is pretty straightforward. This guide will cover how to install, update and remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).
Installing mpfr-static with CLI on Arch-Based Linux (Manjaro/EndeavourOS)
mpfr-static is «Multiple-precision floating-point library» quoting from its profile. To get this package (mpfr-static) from AUR (Arch User Repository) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, ArcoLinux) is fairly uncomplicated. This guide will be covering how to install/update/remove the package with either the default package manager pacman or an AUR helper (e.g. yay).
How to Install python-pylint-celery with Single Line of Command on Arch Linux, Manjaro and Garuda
Referring to python-pylint-celery’s own gist, it is «pylint plugin for analyzing celery». To install and update python-pylint-celery from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS and Anarchy is comparatively uncomplicated. This tutorial will cover how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper like yay.
A Quick Guide on perl-tree-dag-node Installation on Arch-Based Linux (Manjaro, RebornOS)
extra/perl-tree-dag-node is «base class for trees» referring to its definition. To get this package (extra/perl-tree-dag-node) from Arch official repository (Extra) on Arch Linux and Arch-based distros (e.g. Manjaro, EndeavourOS, Garuda, Artix, Parabola) is fairly simple. This tutorial will show you step-by-step how to install/update/uninstall the package with either the built-in package manager pacman or an AUR helper like yay.
How to Install pop-to-8bit (Step-by-Step Guide) on Arch Linux/Manjaro/Anarchy
According to pop-to-8bit’s gist, it’s «Python library for music and audio analysis». To install and update pop-to-8bit from AUR (Arch User Repository) on Arch Linux and Arch-based Linux distributions (e.g. Manjaro, EndeavourOS, Anarchy, RebornOS, Parabola, BlackArch) is comparatively straightforward. This guide will cover how to install/update/remove the package with either the built-in package manager pacman or an AUR helper (e.g. yay).
outguess-png-git Install/Update/Uninstall Guide on Arch Linux, Manjaro and Parabola
Quoting from outguess-png-git’s own description, it is «Hide arbitrary data into the pixels of a PNG image (steganographic tool).». To install and update this package (outguess-png-git) from AUR (Arch User Repository) on Arch Linux, Manjaro, EndeavourOS, Artix, BlackArch and Anarchy is quite easy. This guide will show you step-by-step how to install, update and uninstall the package with either the default package manager pacman or an AUR helper like yay.
More guides… copyright 2023 ArchPKGs. All Rights Reserved.
Brainiarc7 / prime-select PKGBUILD for Arch Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
# Maintainer: Dennis E. Mungai |
pkgname=nvidia-prime |
pkgver=0.7 |
pkgrel=1 |
pkgdesc=»Tools to enable NVIDIA’s Prime.» |
url=»https://launchpad.net/ubuntu/+source/nvidia-prime» |
arch=(‘x86_64’ ‘i686’) |
license=(‘GPLv3’) |
depends=(‘lightdm’ ‘bbswitch’ ‘python’ ‘bash’) |
optdepends=(‘nvidia’ ‘lightdm-gtk3-greeter’) |
makedepends=() |
conflicts=() |
replaces=() |
backup=() |
#install=’nvidia-prime.install’ |
source=(«https://launchpad.net/ubuntu/+archive/primary/+files/$_$.tar.gz») |
sha256sums=(‘SKIP’) |
package() |
cd «$/$» |
mkdir -p «$»/usr/ |
mkdir -p «$»/usr/share/ |
#Install PRIME |
install -m755 $srcdir/nvidia-prime/get-quirk-options $pkgdir/usr/bin/get-quirk-options |
install -m755 $srcdir/nvidia-prime/prime-offload $pkgdir/usr/bin/prime-offload |
install -m755 $srcdir/nvidia-prime/prime-select $pkgdir/usr/bin/prime-select |
install -m755 $srcdir/nvidia-prime/prime-supported $pkgdir/usr/bin/prime-supported |
install -m755 $srcdir/nvidia-prime/prime-switch $pkgdir/usr/bin/prime-switch |
#Add nvidia-prime-quirks |
install -m755 $srcdir/nvidia-prime/prime-quirks $pkgdir/usr/share/nvidia-prime/prime-quirks |
#Add systemD service |
install -m644 $srcdir/nvidia-prime/debian/nvidia-prime.service $pkgdir/usr/lib/systemd/system/nvidia-prime.service |
#Add LightDM |
install -m644 $srcdir/nvidia-prime/90-nvidia.conf $pkgdir/usr/share/lightdm/lightdm.conf.d/90-nvidia.conf |
#Other Information |
install -m644 $srcdir/nvidia-prime/debian/changelog $pkgdir/usr/share/doc/nvidia-prime/changelog.gz |
install -m644 $srcdir/nvidia-prime/debian/copyright $pkgdir/usr/share/doc/nvidia-prime/copyright |
> |
# vim:set ts=2 sw=2 et: |