You are not logged in.
Pages: 1
Topic closed
I have searched but i didn't find that function in pacman.
I searching for a function in pacman(or other program that usu pacman) to remove unsued packages.
Something like this:
root@Trillian:~# pacman --uninstall-unused
resolving dependencies...
looking for inter-conflicts...
Do you want to remove Firefox [Y/N]: N
Do you want to remove Java [Y/N]: Y
Do you want to remove GIMP [Y/N]: N
:: Removing...
Java [############################] 100%
root@Trillian:~#I haven't made the application for this because i have not enough knowledge in programming.
Offline
Can you define unused?
There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums. That is why we avoid it. -- ewaller (arch linux forum moderator)
Offline
For a list of packages formerly installed as dependencies, but no longer in use by any currently installed packages (orphans):
pacman -Qdt
For a list of packages explicitly installed, but not required by any other package:
pacman -Qet
Offline
Can you define unused?
Say... I installed audacity and it installed some deps.
Then I removed audacity, but I can't remember the names of the deps.
So the old deps for audacity is unused. I don't need them.
Offline
use pacman -Qdt
also if you want to remove a package and all its related dependencies
which are not required by any other package:
pacman -Rs packagename
Offline
dolby wrote:Can you define unused?
Say... I installed audacity and it installed some deps.
Then I removed audacity, but I can't remember the names of the deps.
So the old deps for audacity is unused. I don't need them.
pacman -Rs audacity, optional -Rsc would have taken care of that.
Evil #archlinux@freenode channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Mandalf wrote:dolby wrote:Can you define unused?
Say... I installed audacity and it installed some deps.
Then I removed audacity, but I can't remember the names of the deps.
So the old deps for audacity is unused. I don't need them.
pacman -Rs audacity, optional -Rsc would have taken care of that.
That was a nice idea... I will remember to use it.
Offline
The pacman man page has all the details you need, including the options mentioned here.
Offline
you can use a script in bash
for i in `pacman -Qdt | awk '{print $1}'`; do pacman -R $i ; doneOffline
http://wiki.archlinux.org/index.php/For … Bumping.27
You're most welcome to help out, but old topics are better left alone...
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Pages: 1
Topic closed