You are not logged in.
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
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'
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. ![]()
Offline
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
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... ![]()
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. ![]()
Offline
pacman -Rsn $(pacman -Qqdt)==
pacman -Qqdt | xargs pacman -Rsnand 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 ![]()
Offline
pacman -Rsn $(pacman -Qqdt)==
pacman -Qqdt | xargs pacman -Rsnand 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
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. ![]()
Offline
Yes you can run that.
Offline
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. ![]()
Offline
Read this post:
Offline
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
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. ![]()
Offline
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
[offTopic]this thread made my monday morning look like unicorns swimming in a ocean of rainbows, thanks guys[/offTopic]
Offline
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
Offline