You are not logged in.

#1 2025-01-23 01:34:29

longyinstudio
Member
From: China
Registered: 2025-01-23
Posts: 1
Website

pacman & yay -Syu

I have a question: If I run `sudo pacman -Syu` every day, will it not update AUR packages? Do I need to use `yay -Syu` instead? Will AUR packages break if I never update them? Also, if I install IntelliJ IDEA through JetBrains Toolbox, will it break if I don't update it?

Offline

#2 2025-01-23 02:10:12

mpan
Member
Registered: 2012-08-01
Posts: 1,367
Website

Re: pacman & yay -Syu

Welcome to the forum. smile

If you had to ask those questions, or if the reply seems confusing: uninstall yay (or any other AUR helper), read AUR article on the wiki, and get accustomed to how things work.

longyinstudio wrote:

I have a question: If I run `sudo pacman -Syu` every day, will it not update AUR packages?

Depends. If you put built packages in a repository and configure pacman to use that repository: pacman will update packages, when you build a new package version and put it in the repository. If you don’t, there is nothing to update from pacman’s perspective.

longyinstudio wrote:

Will AUR packages break if I never update them?

Packages which you built yourself may break, if they require a rebuild after their dependencies are updated.

Skipping the other two questions, as I use neither of the mentioned programs.

Last edited by mpan (2025-01-23 02:11:27)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2025-01-23 09:17:03

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,580
Website

Re: pacman & yay -Syu

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2025-01-23 12:44:38

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 108

Re: pacman & yay -Syu

Before following the process below, read this blog post.

Following is the process I use:

*** NEW AUR PACKAGES ***

01) Head over to https://aur.archlinux.org and download the latest snapshot(s).

02) Uncompress the snapshot download(s). A folder with a name similar to the snapshot download will be created for each uncompressed snapshot download. Read the PKGBUILD file for each snapshot download to make sure nothing nefarious is being done.

03) From the command line within each folder created in step 02, run makepkg -si to install the package.

04) Delete the folders created in step 02.


*** AUR UPGRADED PACKAGES ***

01) Head over to https://aur.archlinux.org and download the latest yay-bin snapshot if it hasn't been installed.

02) Follow steps 02, 03, and 04 under NEW AUR PACKAGES to install yay-bin if applicable.

03) From the command line, run yay -Syua to generate a list of AUR packages that need upgrading, if any. Enter aur at the yay prompt to cancel any further action on the part of yay. The Arch way frowns on the use of yay to install or upgrade AUR packages.

04) Head over to https://aur.archlinux.org and download the necessary AUR upgrade snapshots.

05) Follow steps 02, 03, and 04 under NEW AUR PACKAGES to install the AUR upgrades.

Last edited by walkingstickfan (2025-01-23 14:24:29)


Arch Linux with Openbox & Tint2

Offline

#5 2025-01-23 19:14:47

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,221

Re: pacman & yay -Syu

To comment on the last part of your question: installing anything outside of pacman, which includes JetBrain's Toolbox, pip, npm, etc. will cause problems down the line, UNLESS it is done in a 'sandbox' that doesn't require root privileges and installs somewhere in your $HOME using your regular user's permissions. For example, running pip in a Python venv is fine.

So, if you can run Toolbox as a regular user and use it to install Intellij in your $HOME, that would not affect any future pacman updates. You likely would have to manually configure it to point to a JDK you installed with pacman, or (I guess) also install a dedicated JDK in your $HOME. But, if you use some other method to install Intellij / JDK as root, be prepared for all sorts of Java headaches with dependencies down the line.

Of course, you could also spare yourself all this by installing intellij-idea-community-edition from [Extra].

Offline

Board footer

Powered by FluxBB