How to build with pamac without installing due to conflict

I want to build a package that conflicts with another which is installed, so I want to only build it to test if build without actually installing. Any help?

$ pamac build tightvnc
Preparing...
Cloning tightvnc build files...
Generating tightvnc information...
Checking tightvnc dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  tightvnc  1.3.10-10                              AUR
To remove (1):
  tigervnc  1.12.0-3   (Conflicts With: tightvnc)  community

Total removed size: 6.1 MB

Edit build files : [e] 
Apply transaction ? [e/y/N] N

Transaction cancelled.

Hi @Tribble,

The --dry-run parameter does exactly that. From the man page:

INSTALL
Install packages from repositories, path or url

pamac install [options] <package(s),group(s)>
[...]
--dry-run, -d
only print what would be done but do not run the transaction
[...]

So try:

pamac build tightvnc --dry-run

Hope this helps!

That doesn’t build anything:

$ pamac build tightvnc --dry-run
Preparing...
Cloning tightvnc build files...
Generating tightvnc information...
Checking tightvnc dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  tightvnc  1.3.10-10                              AUR
To remove (1):
  tigervnc  1.12.0-3   (Conflicts With: tightvnc)  community

Total removed size: 6.1 MB

Transaction successfully finished.

That’s right. Because, it:

So,

Means everything will be successful when you install it. And that is, after all, what you said you wanted to know:

Edit:

The --dry-run arguments doesn’t actually do anything, so have you tried answering yes?

I would use git clone then makepkg to build the package but not install it. For more information see:

https://wiki.archlinux.org/title/Arch_User_Repository

:point_up:

On the dry run the confirmation to apply transaction does NOT appear. And if I run normally will uninstall tigervnc.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.