You are not logged in.

#26 2010-11-29 00:25:30

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

The command issuing the output is "pacman -Rsn".   That has nothing to do with dependencies so why would it issue a statement about it?

Offline

#27 2010-11-29 00:32:23

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Allan wrote:

The command issuing the output is "pacman -Rsn".   That has nothing to do with dependencies so why would it issue a statement about it?


I just followed what silenc3r mentioned in the post and I ran 'pacman -Rsn $(pacman -Qdtq)'. As I mentioned before when I ran this it showed me a list of dependencies to delete and I removed them, then I wanted to run the cmd again to check it over, this time to get the message about no target specified which I thought was an odd reply back, rather then seeing something more like, 'no dependencies found'

silenc3r wrote:

to delete all leftover dependencies at once, issue:

pacman -Rsn $(pacman -Qdtq)

Last edited by DasFox (2010-11-29 00:35:37)


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#28 2010-11-29 00:37:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

That shows you just typed in a command with no understanding of what it did.  Not a limitation of the program.

It is always best to understand shell commands before running them, especially when running them as root...  They can do strange things to your system.

:() { :|: };

If you do not understand that command, then do not type it.   (In fact, even if you think you do understand it, do not type it...).

Offline

#29 2010-11-29 00:53:37

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Allan wrote:

That shows you just typed in a command with no understanding of what it did.  Not a limitation of the program.

It is always best to understand shell commands before running them, especially when running them as root...  They can do strange things to your system.

:() { :|: };

If you do not understand that command, then do not type it.   (In fact, even if you think you do understand it, do not type it...).


Well of course, and in 10 years of running Linux from the CLI I've yet to have a problem with any cmd mucking up anything, so I don't plan on starting now hehe... wink

The point is I ran it and it worked as suggested and it didn't do anything other then list what dependencies I could remove and it then sat there waiting for input back of Y or N to proceed and that was all...

All I'm saying is to have a cmd work they way it was shown then the next time you run it saying a target is not specified makes no sense, the correct reponse they way I see it should of been 'no dependencies found'.

Sorry so what are we saying now, that you can't simply run the cmd like that? --> pacman -Rsn $(pacman -Qdtq)


THANKS


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#30 2010-11-29 01:00:09

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

pacman -Rsn $(pacman -Qqdt)

==

pacman -Qqdt | xargs pacman -Rsn

and I'm sure you've used pipes and xargs in your 10 years of using linux from the CLI, so I guess it all makes sense now roll

Offline

#31 2010-11-29 01:11:54

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

thestinger wrote:
pacman -Rsn $(pacman -Qqdt)

==

pacman -Qqdt | xargs pacman -Rsn

and I'm sure you've used pipes and xargs in your 10 years of using linux from the CLI, so I guess it all makes sense now roll


Let's back and start from the beginning where silenc3r wrote; 'to delete all leftover dependencies at once, issue: pacman -Rsn $(pacman -Qdtq)'.

Ok so is that true or not true, can you run it like that?


THANKS


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#32 2010-11-29 01:13:32

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Yes you can run that.

Offline

#33 2010-11-29 01:22:23

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

anonymous_user wrote:

Yes you can run that.


Ok good, thanks...

So one last question...

When there aren't any dependencies to remove why does it then come back and say 'no targets specified'?


THANKS


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#34 2010-11-29 01:23:34

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Offline

#35 2010-11-29 01:29:47

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Seriously, how many times do you need it explained?  Let repeat it again for you...    maybe this  time you will understand. 

It is saying "no targets specified" because no targets are being specified to the command you are running...   pacman -R requires a target.    pacman -R does not know that you are wanting to provide it only dependencies.  It just knows it needs a package name to remove.

That is the command you are running.   "pacman -R".  It is like telling "rm" to remove a list of files but that list of files is empty.  It will complain that there is a missing target, not that you have no dependencies.

UNDERSTOOD?   (I figure we now have to post the last word in capitals no matter how annoying it is).

Offline

#36 2010-11-29 01:43:20

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

Allan wrote:

Seriously, how many times do you need it explained?  Let repeat it again for you...    maybe this  time you will understand. 

It is saying "no targets specified" because no targets are being specified to the command you are running...   pacman -R requires a target.    pacman -R does not know that you are wanting to provide it only dependencies.  It just knows it needs a package name to remove.

That is the command you are running.   "pacman -R".  It is like telling "rm" to remove a list of files but that list of files is empty.  It will complain that there is a missing target, not that you have no dependencies.

UNDERSTOOD?   (I figure we now have to post the last word in capitals no matter how annoying it is).


I know what targets are and I'm not making myself clear here, so let me try again...

First off if you run a cmd that you don't need to specify a target then it should not ask you for one later, because why should it run and the next time it performs it's function it asks then? This cmd never specified a target in the beginning it simply looked for left over dependencies and then asked you what you wanted to do with them.  Saying no target specified means I left out a 'target' that needed to be added to that cmd in order for it to function, yet it does not require any 'targets' added to it in order to run, simply seeing there are no dependencies to remove and give you this reply, that is an incorrect reply and it should say there are 'no dependencies to remove', instead...

Pacman might be it's own package management that is fine and pacman can do anything in the way it likes but to suggest there is a target needed when there is not, has nothing to do with package management, this is Unix/Linux commands that it's taking a back seat on, with it's own spin on things which isn't correct....

Last edited by DasFox (2010-11-29 01:45:46)


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#37 2010-11-29 01:46:29

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

You did specify a target first time and then did not the second time.   That is why it did not complain about missing targets the first time and did not the second time.     So pacman is being perfectly consistent.


Edit:

Example:   Go to any directory, preferably one with important files.  Type

rm *

and then again

rm *

The second time rm complains about a missing operand.

Offline

#38 2010-11-29 01:51:33

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,557

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

[offTopic]this thread made my monday morning look like unicorns swimming in a ocean of rainbows, thanks guys[/offTopic]

Offline

#39 2010-11-29 01:54:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Does Pacman Have A Command To Check For Left Over Dependencies?

This has really been discussed as much, and as systematically, as is logically possible.

Anything further will just be an (excruciating) exercize in semantics. Let's all move on, shall we?

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB