![](https://secure.gravatar.com/avatar/b280eb778226f7a851055b919eee1051.jpg?s=120&d=mm&r=g)
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies. GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ? -- http://arnuld.blogspot.com/
![](https://secure.gravatar.com/avatar/ce8d0a36a694b1b16d2050082176ce7f.jpg?s=120&d=mm&r=g)
prt-get depends xcfe4 pkgrm (the ones with the [i]) careful though ;) On 5/13/07, arnuld <geek.arnuld@gmail.com> wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
-- http://arnuld.blogspot.com/ _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
-- Best Regards, Jonathan Asghar phone: 512.619.0722
![](https://secure.gravatar.com/avatar/835058edfad5355fce9933cd306e2936.jpg?s=120&d=mm&r=g)
arnuld [2007-05-13 18:39]:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
In ancient times (2 years ago or so), Lucas Hazel announced a few scripts that could take a snapshot of the package database, and later restore it. Maybe he'll show up and reveal the name and url again :) Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
![](https://secure.gravatar.com/avatar/9710f6be74c5777b5725293e8d3059c2.jpg?s=120&d=mm&r=g)
On Sun, 13 May 2007 21:24:09 +0200 Tilman Sauerbeck <tilman@crux.nu> wrote:
arnuld [2007-05-13 18:39]:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
In ancient times (2 years ago or so), Lucas Hazel announced a few scripts that could take a snapshot of the package database, and later restore it. Maybe he'll show up and reveal the name and url again :)
Nope, can't find it. -- Lucas Hazel <lucas@die.net.au> ================================================= "Clothes make the man. Naked men are rarely taken seriously, or given employment." (Mark Twain) =================================================
![](https://secure.gravatar.com/avatar/4e374bb9f03cbbca5d9541a8bf8ec8bf.jpg?s=120&d=mm&r=g)
On Sun, May 13, 2007 at 18:39:20 +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
Short answer: quickdep & dependent. Long answer: for p in `prt-get quickdep xfce4`; do \ d=$(prt-get dependent $p); \ if [ -z "$d" ]; then echo $p; fi ; done Replace 'echo' with 'pkgrm' if you want to directly remove them. HTH, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
![](https://secure.gravatar.com/avatar/4e374bb9f03cbbca5d9541a8bf8ec8bf.jpg?s=120&d=mm&r=g)
On Sun, May 13, 2007 at 21:45:19 +0200, Johannes Winkelmann wrote: [...]
Long answer: for p in `prt-get quickdep xfce4`; do \ d=$(prt-get dependent $p); \ if [ -z "$d" ]; then echo $p; fi ; done
Of course, there's no need to use the temporary: for p in `prt-get quickdep xfce4`; do \ if [ -z "$(prt-get dependent $p)" ]; then echo $p; fi ; done Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
![](https://secure.gravatar.com/avatar/d51b6f233eee94b37270e5140cadef46.jpg?s=120&d=mm&r=g)
El Dom 13 May 2007, Johannes Winkelmann escribió:
On Sun, May 13, 2007 at 21:45:19 +0200, Johannes Winkelmann wrote: [...]
Long answer: for p in `prt-get quickdep xfce4`; do \ d=$(prt-get dependent $p); \ if [ -z "$d" ]; then echo $p; fi ; done
Of course, there's no need to use the temporary: for p in `prt-get quickdep xfce4`; do \ if [ -z "$(prt-get dependent $p)" ]; then echo $p; fi ; done
Johannes
That wouldn't work, because "prt-get dependent $p" will always have at least "xfce4" in its list of dependent packages ;) Maybe this: for p in `prt-get quickdep xfce4`; do \ if [ xfce4 == "$(prt-get dependent $p)" ]; then echo $p; fi ; done Or perhaps he should first remove xfce4 and THEN run your command. Regards, Alan
![](https://secure.gravatar.com/avatar/4e374bb9f03cbbca5d9541a8bf8ec8bf.jpg?s=120&d=mm&r=g)
Hi Alan, On Sun, May 13, 2007 at 16:43:34 -0400, Alan Mizrahi wrote: [...]
That wouldn't work, because "prt-get dependent $p" will always have at least "xfce4" in its list of dependent packages ;) True, I though I had xfce4 installed on this box, thus my tests worked :-).
Maybe this:
for p in `prt-get quickdep xfce4`; do \ if [ xfce4 == "$(prt-get dependent $p)" ]; then echo $p; fi ; done
Or perhaps he should first remove xfce4 and THEN run your command. I guess the best way would be to revert the list obtained with quickdep.
Thanks for the testing :-). Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
![](https://secure.gravatar.com/avatar/eceb1cc66066c414b14a64b846cd6256.jpg?s=120&d=mm&r=g)
On Sun, May 13, 2007 at 06:39:20PM +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
maybe pkgfoster (1) does what you want. bye richi
![](https://secure.gravatar.com/avatar/b280eb778226f7a851055b919eee1051.jpg?s=120&d=mm&r=g)
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote:
On Sun, May 13, 2007 at 06:39:20PM +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
maybe pkgfoster (1) does what you want.
that's good: http://crux.nu/Main/PrtUtils negative side is that it also asks me to remove Emacs too :-) or i can say positive-interpretation is that user *knows* what exactly he is doing ;-)
bye
No Bye. you have to give me the answer ;-)
richi
![](https://secure.gravatar.com/avatar/eceb1cc66066c414b14a64b846cd6256.jpg?s=120&d=mm&r=g)
On Mon, May 14, 2007 at 07:33:02AM +0000, arnuld wrote:
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote:
On Sun, May 13, 2007 at 06:39:20PM +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
maybe pkgfoster (1) does what you want.
negative side is that it also asks me to remove Emacs too
are you sure, you read the manpage for pkgfoster? i there i read: "List of packages to keep are stored in ~/.keepers." bye richi
![](https://secure.gravatar.com/avatar/b280eb778226f7a851055b919eee1051.jpg?s=120&d=mm&r=g)
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote:
On Mon, May 14, 2007 at 07:33:02AM +0000, arnuld wrote:
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote:
On Sun, May 13, 2007 at 06:39:20PM +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
maybe pkgfoster (1) does what you want.
negative side is that it also asks me to remove Emacs too
are you sure, you read the manpage for pkgfoster?
man page was so small, i overlooked it :-(
i there i read: "List of packages to keep are stored in ~/.keepers."
that is fine. i will put Emacs there but "man page" also says "packages in core port are never considered for deletion but "pkgfoster" asks me to remove packages from core port :-(. what can i do so that pkgfoster totally ignores the core and xorg ports ?
bye richi
![](https://secure.gravatar.com/avatar/eceb1cc66066c414b14a64b846cd6256.jpg?s=120&d=mm&r=g)
On Mon, May 14, 2007 at 08:59:51AM +0000, arnuld wrote:
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote: On Mon, May 14, 2007 at 07:33:02AM +0000, arnuld wrote:
On 5/14/07, Richard Pöttler <richard.poettler@gmail.com> wrote: On Sun, May 13, 2007 at 06:39:20PM +0000, arnuld wrote:
i checked the manual page of prt-get and also the prt-get user manual at: http://jw.tks6.net/files/crux/prt-get_manual.html#install_remove
WANT: i have installed Xcfe4 package and it has somewhere around 12-15 dependencies of its own. i wan to remove all of those dependencies too. these dependencies are not shared by any other packages. i can't remember the whole list of dependencies.
GOT: "prt-get remove xfce4" removes only Xfce4 package not those 12 dependencies. how to remove all those together ?
maybe pkgfoster (1) does what you want.
negative side is that it also asks me to remove Emacs too
i there i read: "List of packages to keep are stored in ~/.keepers."
that is fine. i will put Emacs there but "man page" also says "packages in core port are never considered for deletion but "pkgfoster" asks me to remove packages from core port :-(. what can i do so that pkgfoster totally ignores the core and xorg ports ?
i think the problem with the core ports is that the ports are (as far as i know) hardcoded into pkgfoster (and not updated, yet). a solution could be to add all the core and xorg ports to your .keepers file. bye richi
participants (7)
-
Alan Mizrahi
-
arnuld
-
Johannes Winkelmann
-
Jonathan Asghar
-
Lucas Hazel
-
Richard Pöttler
-
Tilman Sauerbeck