You are not logged in.

#1 2019-01-06 07:35:41

clever
Member
Registered: 2015-06-18
Posts: 43

how to ignore package and it's dependencies and required by packages

Hi guys
is there a way to get package dependencies and required by packages via command or script?
for example i want to ignore postgresql, it's depend on "icu" and required by "glom".

Offline

#2 2019-01-06 12:05:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: how to ignore package and it's dependencies and required by packages

Don't. icu is an ABI break required by many packages. See the following for sustainable solutions, if you absolutely must keep an older postgres version: https://bbs.archlinux.org/viewtopic.php?id=242315

Last edited by V1del (2019-01-06 12:05:56)

Offline

#3 2019-01-06 14:48:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: how to ignore package and it's dependencies and required by packages

What is the purpose of this script you will write?  This sounds like an X-Y problem.  If you want to ignore updates to postgresql (probably not a good idea) do you think you need to ignore updates to all the packages it depends on and all those that depend on it?  What about all the packages those packages depend on and those that depend on them?  If you want that list, it is simply the result of `pacman -Qq`: every single package on your system.

If you just want a fixed version of postgresql, use one of the many packages from the AUR for just this purpose.

But then if you really just want to know how to get a list of the dependencies of and/or packages that depend on a give package, see `man pacman`.  If you want a tool that will do all the filtering of pacman's output for you, see `man expac`.  If you want these data recursively, see `man pactree`.

Last edited by Trilby (2019-01-06 14:50:08)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB