You are not logged in.

#1 2014-02-25 12:46:33

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Yaourt interrupted / Cleaning installed deps

Suppose i was going to build a certain package.

Firts yaourt installed all the dependencies.

Then it fails retrieving the sources or whatever.

Now i need to clean all these deps
for the package that isn't there. How?

Offline

#2 2014-02-25 12:48:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Yaourt interrupted / Cleaning installed deps

Check the pacman log to see which dependencies were installed or look at the PKGBUILD.

Last edited by Slithery (2014-02-25 12:52:03)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-02-25 13:28:27

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Yaourt interrupted / Cleaning installed deps

slithery wrote:

Check the pacman log to see which dependencies were installed

Lots of various deps

Offline

#4 2014-02-25 13:29:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt interrupted / Cleaning installed deps

Copy-paste them to the command line.

Offline

#5 2014-02-25 13:37:49

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Yaourt interrupted / Cleaning installed deps

Or you could first look into why the package was not installed. If there was an error retrieving the sources, then maybe you should notify the AUR package maintainer. That way you could benefit from it, and others as well.

Also, if you are too lazy to remove the dependencies manually, install the package by fixing the sources problem, then install that package, then do

# pacman -Rsc <pkg>

This will remove that package along with its deps.

Offline

#6 2014-02-25 14:34:53

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Yaourt interrupted / Cleaning installed deps

https://wiki.archlinux.org/index.php/Pa … d_packages

I ditched yaourt for the wondrous simplicity of cower and makepkg a long time ago, but as I recall anytime it fails to build an explicitly requested package it offers to remove the pre-installed dependencies.

Offline

#7 2014-02-25 14:51:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt interrupted / Cleaning installed deps

ANOKNUSA wrote:

https://wiki.archlinux.org/index.php/Pa … d_packages

I ditched yaourt for the wondrous simplicity of cower and makepkg a long time ago, but as I recall anytime it fails to build an explicitly requested package it offers to remove the pre-installed dependencies.

Cower doesn't build packages.
Depends on what options you used with makepkg.

Last edited by karol (2014-02-25 14:52:54)

Offline

#8 2014-02-25 18:36:14

jpgg
Member
Registered: 2014-01-15
Posts: 43

Re: Yaourt interrupted / Cleaning installed deps

Found on the wiki :

# pacman -Rns $(pacman -Qtdq)

Offline

#9 2014-02-25 18:42:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt interrupted / Cleaning installed deps

First run just 'pacman -Qtdq' to make sure it doesn't want to remove any packages you need.

Offline

#10 2014-02-25 19:10:09

jpgg
Member
Registered: 2014-01-15
Posts: 43

Re: Yaourt interrupted / Cleaning installed deps

karol wrote:

First run just 'pacman -Qtdq' to make sure it doesn't want to remove any packages you need.

Running 'pacman -Rns $(pacman -Qtdq)' will prompt and show you what it is about to remove.

Offline

#11 2014-02-25 19:19:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Yaourt interrupted / Cleaning installed deps

jpgg wrote:
karol wrote:

First run just 'pacman -Qtdq' to make sure it doesn't want to remove any packages you need.

Running 'pacman -Rns $(pacman -Qtdq)' will prompt and show you what it is about to remove.

Sure, but it will include the dependencies too:

$ pacman -Qtdq
gobject-introspection
intel-dri
intltool
ocaml
$ sudo pacman -Rns $(pacman -Qtdq)
checking dependencies...

Packages (8):

Name                   Old Version   Net Change

perl-xml-parser        2.41-4         -0.43 MiB
python2-beaker         1.6.4-1        -0.66 MiB
python2-mako           0.9.1-1        -0.84 MiB
python2-markupsafe     0.18-2         -0.12 MiB
gobject-introspection  1.38.0-1       -8.86 MiB
intel-dri              10.0.3-1       -5.04 MiB
intltool               0.50.2-1       -0.21 MiB
ocaml                  4.01.0-3     -177.32 MiB

Total Removed Size:   193.50 MiB

:: Do you want to remove these packages? [Y/n] 

The first output is shorter and easier to parse.

Offline

#12 2014-02-25 19:25:42

Xelvet
Member
Registered: 2014-02-20
Posts: 82

Re: Yaourt interrupted / Cleaning installed deps

Thanks guys. It seems pacman -Qtdq did the trick.

Last edited by Xelvet (2014-02-25 19:26:22)

Offline

#13 2014-02-25 21:19:57

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Yaourt interrupted / Cleaning installed deps

karol wrote:
ANOKNUSA wrote:

https://wiki.archlinux.org/index.php/Pa … d_packages

I ditched yaourt for the wondrous simplicity of cower and makepkg a long time ago, but as I recall anytime it fails to build an explicitly requested package it offers to remove the pre-installed dependencies.

Cower doesn't build packages.
Depends on what options you used with makepkg.

The "it" refers to yaourt, not cower or makepkg.

Offline

Board footer

Powered by FluxBB