The officially official Devuan Forum!

You are not logged in.

#1 2020-10-27 16:11:19

Excalibur
Member
Registered: 2019-03-07
Posts: 14  

To permanently block installation of Pulseaudio.

When installing multimedia software pulseaudio can be pulled in as a dependency or as a recommends. This can be blocked by using APT pinning. Place a file in /etc/apt/preferences.d containing the following: -

                              Package: pulseaudio
                              Pin: release n=beowulf
                              Pin-Priority: -10

Any software you do not want installed can be blocked in a similar way.

I use a Perl script to generate an avoid-pkgName file.

Offline

#2 2020-10-27 22:32:28

zapper
Member
Registered: 2017-05-29
Posts: 439  

Re: To permanently block installation of Pulseaudio.

Excalibur wrote:

When installing multimedia software pulseaudio can be pulled in as a dependency or as a recommends. This can be blocked by using APT pinning. Place a file in /etc/apt/preferences.d containing the following: -

                              Package: pulseaudio
                              Pin: release n=beowulf
                              Pin-Priority: -10

Any software you do not want installed can be blocked in a similar way.

I use a Perl script to generate an avoid-pkgName file.

Sounds good!


Black Lives Matter!  I am white, but I prefer equality over hatred.
Haughtiness comes before a fall, pride before destruction.
Peace be with you!
No one can serve two masters. Either you will hate the one and love the other, or you will be devoted to the one and despise the other. You cannot serve both God and mammon!

Offline

#3 2021-06-29 15:45:03

beate
Member
Registered: 2019-03-25
Posts: 23  

Re: To permanently block installation of Pulseaudio.

... works until the next upgrade to chimaera.

And then murphy will predict that You forget to update the release entry before doing the update.

Offline

#4 2021-06-29 23:28:57

szutt
Member
Registered: 2019-02-03
Posts: 35  

Re: To permanently block installation of Pulseaudio.

This sounds like a good news : PipeWire 0.3.31 https://www.reddit.com/r/MXLinux/commen … chpad_ppa/

Supports on MX Linux and ubuntu 18.04 also Or All Debian based distros

Offline

#5 2021-07-03 15:22:04

thierrybo
Member
Registered: 2017-11-11
Posts: 83  

Re: To permanently block installation of Pulseaudio.

Package: pulseaudio
Pin: release o=Devuan
Pin-Priority: -10

Yes should be better to deal with version upgrades.

Offline

#6 2022-07-17 18:31:50

delgado
Member
Registered: 2022-07-14
Posts: 11  

Re: To permanently block installation of Pulseaudio.

I have multiarch enabled and apt wants to install pulsaudio:i386.

$ sudo apt-get -s install pulseaudio
(...)
Note, selecting 'pulseaudio:i386' instead of 'pulseaudio'
The following additional packages will be installed:
  libaudit1:i386  (...)  pulseaudio-utils:i386 rtkit:i386

Is there a variant for multiarch?

Offline

#7 2022-07-17 19:00:08

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,431  

Re: To permanently block installation of Pulseaudio.

Try

Package: pulseaudio:amd64
Pin: version *
Pin-Priority: -1

Package: pulseaudio:i386
Pin: version *
Pin-Priority: -1

-10 is bloat — P < 0 is all that is required tongue

EDIT: check with this after editing the preferences file:

# apt update
$ apt policy

EDIT2: this stanza might work by itself (I can't check atm):

Package: pulseaudio:*
Pin: version *
Pin-Priority: -1

EDIT3: confirmed, the above stanza is all that is needed to block all architectures of the package:

Pinned packages:
     pulseaudio -> 14.2-2 with priority -1
     pulseaudio:i386 -> 14.2-2 with priority -1

Last edited by Head_on_a_Stick (2022-07-18 16:09:14)


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Offline

#8 2022-07-19 19:33:46

delgado
Member
Registered: 2022-07-14
Posts: 11  

Re: To permanently block installation of Pulseaudio.

Thanks Head_on_a_Stick!

Offline

Board footer