You are not logged in.

#1 2014-12-31 13:57:58

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

[SOLVED] how can I replace pacsysclean?

hi fellows,

with last 4.2 release, pacman loses the utility "pacsysclean" that lists installed but no dependence packages on the system. how can I replicate that utility?

PS: googling I found that "pacsize" does what I'm searching for but I can't find it...!

Last edited by nTia89 (2015-01-02 14:22:26)


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#2 2014-12-31 14:07:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] how can I replace pacsysclean?

Could script around expac. Start with:

expac '%m %n' | sort -g -k1

aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2014-12-31 14:48:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: [SOLVED] how can I replace pacsysclean?

perhaps

expac "%w %m %n" | awk '/explicit/ { printf "%-12s %s\n", $2, $3; }' | sort -n

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-12-31 14:51:37

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

Re: [SOLVED] how can I replace pacsysclean?

nTia89 wrote:

PS: googling I found that "pacsize" does what I'm searching for but I can't find it...!

As fsckd mentioned, expac could be the answer, see https://bbs.archlinux.org/viewtopic.php?id=45175 For me that was teh first thread listed when I googled for 'pacsize', not sure how you missed it or what's wrong with the expac solution.

Offline

#5 2014-12-31 16:47:04

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] how can I replace pacsysclean?

What's wrong with `pacman -Qdt`?

Offline

#6 2014-12-31 17:33:17

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] how can I replace pacsysclean?

and just out of curiosity, the aforementioned "pacsize" where is it?


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#7 2014-12-31 18:31:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: [SOLVED] how can I replace pacsysclean?

It came up as one of the first search results for me: https://bbs.archlinux.org/viewtopic.php … 32#p962932

EDIT: oops, this is the same one Karol already provided.  So what are you asking?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2014-12-31 18:34:45

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

Re: [SOLVED] how can I replace pacsysclean?

expac -H M "%m:\t%n" | sort -n

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2015-01-01 13:39:48

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] how can I replace pacsysclean?

ah ok, so "pacsize" isn't provided as pacman-contrib instead it's a script simply shared in our forum, ok!
@Trilby this is what I was meaning...


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#10 2015-01-01 16:17:47

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [SOLVED] how can I replace pacsysclean?

Isn't the same result?

# pacman -Qtdq

do it good first, it will be faster than do it twice the saint wink

Offline

#11 2015-01-01 16:22:51

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: [SOLVED] how can I replace pacsysclean?

TheSaint wrote:

Isn't the same result?

# pacman -Qtdq

No. nTia80 is looking for a size-sorted "pacman -Qe"


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2015-01-01 19:44:34

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

Re: [SOLVED] how can I replace pacsysclean?

bigpkg had the same basic functionality, the main difference being that it gave a "real space used" estimate by factoring in dependencies for each package. It's currently flagged as out-of-date, possibly because it's broken. No surprise there, considering who created it...

Offline

#13 2015-01-02 14:22:13

nTia89
Banned
From: varese, italy
Registered: 2008-12-22
Posts: 1,230

Re: [SOLVED] how can I replace pacsysclean?

ok, thank you everybody
I'm currently studying on expac (I didn't know it before...!)
because I want now to replicate the behaviour of

pacsysclean -o dt

command


+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome

Offline

#14 2015-01-10 04:10:54

hazard
Member
Registered: 2011-07-04
Posts: 15

Re: [SOLVED] how can I replace pacsysclean?

I added replacement pacsysclean functionality to apacman v0.9 (AUR wrapper)

listpkgs() {
  pacman -Qi${1//-} | grep -e "^Name " -e "^Installed Size " | \
  awk '{if ($(NF-1) ~ /^[0-9]/) printf $(NF-1); print $NF}' | paste -s -d' \n' | \
  sed -e 's/iB$//' -e 's/\.00K/K/' -e 's/\.00B/B/' | awk '{printf "%-10s %-40s\n",$2,$1}' | sort -h
}

Pass-through options:

$ apacman -Ldt
$ listpkgs -dt

Offline

#15 2015-01-10 10:10:09

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] how can I replace pacsysclean?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB