Package Details: profile-cleaner 2.35-1

Git Clone URL: https://aur.archlinux.org/profile-cleaner.git (read-only)
Package Base: profile-cleaner
Description: Reduces profile size by cleaning their sqlite databases.
Upstream URL: https://github.com/graysky2/profile-cleaner
Licenses: MIT
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 138
Popularity: 4.846610
First Submitted: 2012-08-31 11:54
Last Updated: 2015-07-25 18:57

Latest Comments

ryansito commented on 2015-10-24 14:30

@graysky The tor browser path is:
prepath="$HOME/.tor-browser-$lang/INSTALL/Browser/TorBrowser/Data/Browser/profile.default"
Keep up the good work !!

graysky commented on 2015-07-25 18:58

Bump to v2.35

Changelog: Added support for inox.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.34...v2.35

graysky commented on 2015-02-03 20:09

Bump to v2.34

Changelog: Added zsh completion.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.33...v2.34

graysky commented on 2015-01-24 15:22

Bump to v2.33

Changelog: Support for Opera and simplified options for browsers with multiple names, like 'chromium' 'chromium-beta' 'chromium-dev' which now autodetect and just work.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.32...v2.33

graysky commented on 2014-11-28 20:45

Bump to v2.32

Changelog: Update for Qupzilla's patch.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.31...v2.32

graysky commented on 2014-08-30 21:54

Bump to v2.31

Changelog: Exclude *.sqlite-wal files.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.30...v2.31

richardkemp commented on 2014-08-10 09:34

[rich@arch ~]$ profile-cleaner f
profile-cleaner v2.30

Cleaning profile for firefox
Cleaning webappsstore.sqlite-wal done -0 Mbytes
Cleaning cookies.sqlite-wal done -0 Mbytes
Cleaning places.sqlite-wal done -0 Mbytes
Cleaning ybookmarks.sqlite done -0 Mbytes
Cleaning webappsstore.sqlite done -0 Mbytes
Cleaning urlclassifier3.sqlite done -0 Mbytes
Cleaning signons.sqlite done -0 Mbytes
Cleaning search.sqlite done -0 Mbytes
Cleaning readItLater.sqlite done -0 Mbytes
Cleaning places.sqlite done -3.31 Mbytes
Cleaning permissions.sqlite done -0 Mbytes
Cleaning netpredictions.sqlite done -0 Mbytes
Cleaning heatmap_2012.sqlite done -0 Mbytes
Cleaning heatmap15.sqlite done -0 Mbytes
Cleaning healthreport.sqlite done -0 Mbytes
Cleaning formhistory.sqlite done -0 Mbytes
Cleaning extensions.sqlite done -0 Mbytes
Cleaning dta_queue.sqlite done -0 Mbytes
Cleaning cookies.sqlite done -0 Mbytes
Cleaning content-prefs.sqlite done -0 Mbytes
Cleaning addons.sqlite done -0 Mbytes
Cleaning IMDB_Pirated_Version.db done -0 Mbytes
Cleaning bookmark.sqlite done -0 Mbytes

Profile(s) for firefox reduced by -92.57 Mbytes.


These don't seem to add up..

Anonymous comment on 2014-06-30 06:43

Hello,

Namcap was spitting out a bunch of warnings for this package regarding dependencies already being satisfied, so I verified each one via pactree and indeed every dependency you have explicitly listed is either part of base-devel or pulled in by a package from base-devel. Base-devel should be assumed, so all your dependencies can be removed, or at least the ones directly pulled in via base-devel.

graysky commented on 2014-06-23 22:29

Bump to v2.30

Changelog: Added support for palemoon.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.29...v2.30

graysky commented on 2014-06-22 10:24

Bump to v2.29

Changelog: Added support for icecat.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.28.1...v2.29

graysky commented on 2014-05-18 10:41

Bump to v2.28.1-1

Changelog: Trivial change to Makefile to allow packaging for ubuntu.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.28...v2.28.1

graysky commented on 2014-05-06 20:16

Bump to v2.28-1

Changelog: Name change of google-chrome-dev to -unstable.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.27...v2.28

graysky commented on 2014-03-12 21:46

Bump to v2.27-1

Changelog: Support for icedove (thunderbird on debian systems).
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.26...v2.27

k2cl commented on 2014-02-12 21:14

Few months ago profile-cleaner stopped working on my setup (I have to admit that I didn't have time to investigate it proprerly so far)... That's what I get:

$ profile-cleaner f
profile-cleaner v2.26

Cleaning profile for firefox

Profile(s) for firefox reduced by 0 Mbytes.


$ cat .mozilla/firefox/profiles.ini
[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=cc6njanq.default

Is there any way I could get some more verbose output from profile-cleaner? At the moment I have no idea why it's not working. By the way, it's the same story with Chromium profile - it's also not being reduced at all...

I'll be very grateful for any clues.

Firefox info:
$ pacman -Qs firefox
local/firefox 27.0-1
Standalone web browser from mozilla.org
local/firefox-i18n-pl 27.0-1
Polish language pack for Firefox

graysky commented on 2014-01-19 13:35

Glad it's working. Thanks for reporting the bug so the script is more robust. Enjoy.

kullfar commented on 2014-01-19 12:45

@tuborg Ah! nice work. Thanks.
Actualy I did not have "-n" options, but

$ echo $GREP_OPTIONS
--color=always

And this 'coloring' actualy do add some bytes to output.

$ grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | hexdump -C
00000000 1b 5b 30 31 3b 33 31 6d 1b 5b 4b 50 61 74 68 1b |.[01;31m.[KPath.|
00000010 5b 6d 1b 5b 4b 3d 6a 79 6e 30 72 6e 35 71 2e 64 |[m.[K=jyn0rn5q.d|
00000020 65 66 61 75 6c 74 2d 31 33 38 33 35 35 36 36 33 |efault-138355663|
00000030 32 30 30 37 0a |2007.|
00000035

$ GREP_OPTIONS="" grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | hexdump -C
00000000 50 61 74 68 3d 6a 79 6e 30 72 6e 35 71 2e 64 65 |Path=jyn0rn5q.de|
00000010 66 61 75 6c 74 2d 31 33 38 33 35 35 36 36 33 32 |fault-1383556632|
00000020 30 30 37 0a |007.|
00000024

And this breaks my sed.

Thanks a lot!

@graysky yep, it does help. 2.26-1 is working for me from the box now. Thanks for this script!

graysky commented on 2014-01-19 10:20

Bump to v2.26-1

Changelog: Script blanks out GREP_OPTIONS for proper operation in some use cases.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.25...v2.26

graysky commented on 2014-01-19 10:18

@laurentb - Added to v2.26-1
@kullfar - Please try v2.26-1 and let me know if this fixes your problem.

laurentb commented on 2014-01-19 00:00

In any case GREP_OPTIONS should be cleared by the script, otherwise many cases can break.

graysky commented on 2014-01-18 23:48

Is $GREP_OPTIONS universal? Would clearing this in the script fix the problem?

tuborg commented on 2014-01-18 23:24

@kullfar - I had a similar problem. It was because I had the -n line number grep option set in my environment. echo $GREP_OPTIONS and make sure there is no conflicting settings. Your cut solution works with the -n however so it may be a nice fix for everyone (as the matching line number is printed at the beginning).

Thanks for another great tool graysky!

kullfar commented on 2013-12-14 18:08

Seems, like a problem with 'sed' command on line 151
done < <(grep '[P,p]'ath "$profilepath/profiles.ini" | sed -e 's/[P,p]ath=//' -e 's/\r//' )


my profiles.ini
$ cat .mozilla/firefox/profiles.ini
[General]
StartWithLastProfile=1

[Profile0]
Name=default-1383556632007
IsRelative=1
Path=jyn0rn5q.default-1383556632007
Default=1


result of command from script
$ grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | sed -e 's/[P,p]ath=//' -e 's/\r//'
Path=jyn0rn5q.default-1383556632007


I think the result should be just
jyn0rn5q.default-1383556632007

I've changed
sed -e 's/[P,p]ath=//' -e 's/\r//'
to
cut -d "=" -f2

Result becomes better
$ grep '[P,p]'ath .mozilla/firefox/profiles.ini | cut -d "=" -f2
jyn0rn5q.default-1383556632007


this change does help

$ pc f
profile-cleaner v2.25

Cleaning profile for firefox
Cleaning healthreport.sqlite done -0 Mbytes
Cleaning places.sqlite done -8.58 Mbytes
Cleaning downloads.sqlite done -0 Mbytes
Cleaning permissions.sqlite done -0 Mbytes
Cleaning content-prefs.sqlite done -0 Mbytes
Cleaning webappsstore.sqlite done -0 Mbytes
Cleaning formhistory.sqlite done -.01 Mbytes
Cleaning signons.sqlite done -0 Mbytes
Cleaning extensions.sqlite done -0 Mbytes
Cleaning cookies.sqlite done -.75 Mbytes

Profile(s) for firefox reduced by 9.34 Mbytes.


dunno why, but my 'sed' can't catch "equals sign" after any letter

can replace "h"
$ grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | sed 's/h//'
Pat=jyn0rn5q.default-1383556632007

can replace "="
$ grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | sed 's/=//'
Pathjyn0rn5q.default-1383556632007

but cannot replace "h="
$ grep '[P,p]'ath ".mozilla/firefox/profiles.ini" | sed 's/h=//'
Path=jyn0rn5q.default-1383556632007


info about my sed

$ sed --version
sed (GNU sed) 4.2.2
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

graysky commented on 2013-12-12 12:51

The script parses ~/.mozilla/firefox/profiles.ini so if something is off in there, that could be your problem. Verify that only profiles that are on the system are referenced. You can also post the contents of this file here for further help.

kullfar commented on 2013-12-12 06:34

Hi everbody!
I can not clean my firefox profile.

$ profile-cleaner f
profile-cleaner v2.25

Cleaning profile for firefox
Usage: file [-bchikLlNnprsvz0] [--apple] [--mime-encoding] [--mime-type]
[-e testname] [-F separator] [-f namefile] [-m magicfiles] file ...
file -C [-m magicfiles]
file [--help]

Profile(s) for firefox reduced by 0 Mbytes.


while I do have firefox installed
$ pacman -Ss firefox
extra/firefox 26.0-1 [installed: 25.0.1-1]
Standalone web browser from mozilla.org
...

(26.0 is buggy, so I still use 25.0.1)


First installation of firefox on my system is 3.5.2 from 13.08.2009
# grep firefox /var/log/pacman.log | head -3
[2009-08-13 23:20] installed firefox (3.5.2-1)
[2009-09-22 20:12] upgraded firefox (3.5.2-1 -> 3.5.3-1)
[2009-11-02 20:06] upgraded firefox (3.5.3-1 -> 3.5.4-1)


May be I have "old" path to the profile files.

I have successfully run cleaner for firefox on my another newer PC.

btw, I have successfully run cleaner on this PC for Chromium

$ profile-cleaner c
profile-cleaner v2.25

Cleaning profile for chromium
Cleaning History done -0 Mbytes
Cleaning Network Action Predictor done -0 Mbytes
Cleaning Origin Bound Certs done -0 Mbytes
Cleaning Cookies done -0 Mbytes
Cleaning Web Data done -0 Mbytes
Cleaning Login Data done -0 Mbytes
Cleaning Favicons done -0 Mbytes
Cleaning QuotaManager done -0 Mbytes
Cleaning Top Sites done -0 Mbytes
Cleaning Extension Cookies done -0 Mbytes
Cleaning Shortcuts done -0 Mbytes
Cleaning Archived History done -0 Mbytes
Cleaning Safe Browsing Cookies done -0 Mbytes

Profile(s) for chromium reduced by 0 Mbytes.

but not firefox.


ps: the same story for the thunderbird

graysky commented on 2013-10-25 17:33

Bump to v2.25-1

Changelog: Support for google-chrome-{beta/dev} and chromium-{beta/dev}
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.24...v2.25

graysky commented on 2013-09-17 20:18

Bump to v2.24-1

Changelog: Support for newsbeuter (laurentb).
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.23...v2.24

graysky commented on 2013-09-13 23:15

Bump to v2.23-1

Changelog: Support for tor-browser (laurentb).
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.23...v2.23

graysky commented on 2013-06-13 23:18

Bump to v2.22-1

Changelog: Better readability in code and tweak to docs/Makefile.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.21...v2.22

maggis commented on 2013-06-01 09:13

findutils is installed. I can run xargs, too.
The package "file" got corrupted somehow, as it was listed as installed, but /usr/bin/file was missing.
Dropping the cache and reinstalling base group did the trick.

profile-cleaner is working again.

Thanks!

maggis commented on 2013-06-01 08:51

I wouldn't understand how to build an Arch system without findutils either. Don't think, that's possible. Findutils is installed, of course.
But clearly the issue is on my machine, since profile-cleaner runs fine on my other one.
The machine in question got a new harddrive some weeks ago and I "reinstalled" by "rsyncing" a backup to the drive. I guess something went wrong there.

Thanks for your efforts!

maggis commented on 2013-06-01 08:51

I wouldn't understand how to build an Arch system without findutils either. Don't think, that's possible. Findutils is installed, of course.
But clearly the issue is on my machine, since profile-cleaner runs fine on my other one.
The machine in question got a new harddrive some weeks ago and I "reinstalled" by "rsyncing" a backup to the drive. I guess something went wrong there.

Thanks for your efforts!

graysky commented on 2013-06-01 08:49

Does the machine in question have findutils installed? If it does, xargs seems to be missing so `pacman -S findutils` to reinstall it.

Can you verify that 2.21 is working for you on the problematic machine?

maggis commented on 2013-06-01 08:48

I wouldn't understand how to build an Arch system without findutils either. Don't think, that's possible. Findutils is installed, of course.
But clearly the issue is on my machine, since profile-cleaner runs fine on my other one.
The machine in question got a new harddrive some weeks ago and I "reinstalled" by "rsyncing" a backup to the drive. I guess something went wrong there.

Thanks for your efforts!

graysky commented on 2013-05-31 21:37

Bump to v2.21-1

Changelog: Added dep check for xargs.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.20...v2.21

graysky commented on 2013-05-31 21:37

Bump to v2.21-1

Changelog: Added dep check for xargs.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.20...v2.21

graysky commented on 2013-05-31 21:36

You are missing a member of the base group called 'findutils' and I just updated the script to detect this and complain if true. Thank you. Install that package and all will be well.

...frankly, I do not understand how you build your Arch system without it since several system critical components depend on it, ie mkinitcpio.

maggis commented on 2013-05-31 21:11

I get the following error with the latest firefox and thunderbird versions:
xargs: file: No such file or directory

Anyway: this is a great little peace of software. Thanks!

graysky commented on 2013-03-17 13:58

Bump to v2.20-1

Changelog: Added support for seamonkey.
Commit: https://github.com/graysky2/profile-cleaner/compare/v2.01...v2.20

graysky commented on 2013-02-17 11:30

Bump to v2.01-2

Changelog: Added line to include the MIT license per https://wiki.archlinux.org/index.php/Arch_Packaging_Standards#Licenses

graysky commented on 2013-02-17 02:15

Bump to v2.01-1

Changelog: License change GPL --> MIT.
Commit: https://github.com/graysky2/profile-cleaner/commit/5adfde53f790cab9e162cef81a1138b22e43572c

graysky commented on 2013-02-16 19:12

Bump to v2.00-1

Changelog: Updated manpage.
Commit: https://github.com/graysky2/profile-cleaner/commit/151278315a3c208671b05d066155f15122e3ec06

graysky commented on 2013-02-15 22:44

Bump to v1.99-1

Changelog: Added --gnu switch to parallel for compatibility on ubuntu, debian, and fedora (aesiris).
Commit: https://github.com/graysky2/profile-cleaner/commit/28b41b653d0351e3036351ca6a485409070d69cb

graysky commented on 2013-02-14 21:51

Bump to v1.98-1

Changelog: Switch to Makefile paradigm for wider support on other distros.
Commit: https://github.com/graysky2/profile-
cleaner/commit/480fe861df9bd598d79de69c5c12101d973c6be1

graysky commented on 2012-12-11 00:21

Bump to v1.96-1

Changelog: Avoid using temp files in favour of arrays (aesiris).
Commit: https://github.com/graysky2/profile-cleaner/commit/32c9a49d6f8cd9406bd5f1dfbb5b118329ad1f6d

graysky commented on 2012-12-09 20:40

Bump to v1.95-1

Changelog: Fixed bug introduced by new code for aurora.
Commit: https://github.com/graysky2/profile-cleaner/commit/7edb9779cd3f062eed42a74f03b207a0ae120082

graysky commented on 2012-12-09 18:26

Bump to v1.94-1

Changelog: Fixed the dreaded \r from getting into work array.
Commit: https://github.com/graysky2/profile-cleaner/commit/c6a6c6eb6d150eb5fb40e1743801bc584c74dc3e

graysky commented on 2012-12-09 18:21

Bump to v1.93-1

Changelog: Firefox/aurora profiles can now contain spaces and profile-cleaner will process them.
Commit: https://github.com/graysky2/profile-cleaner/commit/977721f1b8cbe02660105c8d28dd5270325413bb

graysky commented on 2012-12-09 18:21

Bump to v1.92-1

Changelog: Fixed google-chrome bug.
Commit: https://github.com/graysky2/profile-cleaner/commit/f96e19e6fa46d7775df56e47b67f540d690dfc02

graysky commented on 2012-12-08 21:09

Bump to v1.91-1

Changelog: Fixed long standing bug in chrome based profiles and removed the 'all' option.
Commit: https://github.com/graysky2/profile-cleaner/commit/5158f590063b6798538caba4385cf6b3d788d1d0

graysky commented on 2012-12-06 22:45

Bump to v1.90-1

Changelog: Repositioned the 2>/dev/null to be more meaningful.
Commit: https://github.com/graysky2/profile-cleaner/commit/caa35cd7d3391e674f81ac0456136a03761cd329

graysky commented on 2012-12-06 22:08

Bump to v1.89-1

Changelog: Less verbose output on errors that are meaningless.
Commit: https://github.com/graysky2/profile-cleaner/commit/b0aa0e96c93b051811e0b8c5e4f34f2b965eb0f3

graysky commented on 2012-12-04 09:59

Bump to v1.88-1

Changelog: Honor custom locations for XDG_CONFIG_HOME (thanks to fschiff for the suggestion).
Commit: https://github.com/graysky2/profile-cleaner/commit/276ef0a069ea37b47afa6d710d2c441cd3364b8d

graysky commented on 2012-12-04 00:41

Bump to v1.87-1

Changelog: Replaced $XDG_CONFIG_HOME with long-hand $HOME/.config and colorized error messages.
Commit: https://github.com/graysky2/profile-cleaner/commit/4c5a8a08e77d11a9af97c5497b1b660144dc06d2

graysky commented on 2012-12-04 00:41

Bump to v1.86-1

Changelog: Replaced $XDG_CONFIG_HOME with long-hand $HOME/.config and colorized error messages.
Commit: https://github.com/graysky2/profile-cleaner/commit/4c5a8a08e77d11a9af97c5497b1b660144dc06d2

graysky commented on 2012-12-01 13:36

Bump to v1.86-1

Changelog: Minor cosmetic tweaks.
Commit: https://github.com/graysky2/profile-cleaner/commit/7c36f819c339ccac0fe1fe99a8d57f6e25df941a

graysky commented on 2012-12-01 03:25

Bump to v1.85-1

Changelog: Added an option to clean all supported profiles in one shot.
Commit: https://github.com/graysky2/profile-cleaner/commit/ce0fded29729ef630a9e224402233941a209dd58

graysky commented on 2012-12-01 03:25

Bump to v1.85-1

Changelog: Added an option to clean all supported profiles in one shot
Commit: https://github.com/graysky2/profile-cleaner/commit/ce0fded29729ef630a9e224402233941a209dd58

graysky commented on 2012-11-30 22:04

Bump to v1.84-1

Changelog: Colorized output using code by skydrome.
Commit: https://github.com/graysky2/profile-cleaner/commit/ae13badfe075bd344e31ab3a8614bcf1e40cbfc4

graysky commented on 2012-11-30 22:03

Bump to v1.84-1

Changelog: Colorized output using code by skydrome
Commit: https://github.com/graysky2/profile-cleaner/commit/ae13badfe075bd344e31ab3a8614bcf1e40cbfc4

graysky commented on 2012-11-30 21:25

Bump to v1.83-1

Changelog: Script now reports total amount recovered.
Commit: https://github.com/graysky2/profile-cleaner/commit/a939f3395e716c1691b9cf88ea7023a893071e5d

graysky commented on 2012-11-29 22:25

Bump to v1.82-1

Changelog: Simplified code, added CHANGELOG and added man page.
Commit: https://github.com/graysky2/profile-cleaner/commit/7aa84453aa6c1b024b82db7fc861b9df1ddc58e9

graysky commented on 2012-11-29 21:06

Bump to v1.81-1
Changelog: Fixed pesky \r from getting into work array.
Commit: https://github.com/graysky2/profile-cleaner/commit/51049bc30becb30aad5a0e12cf1a3c0668f84ecf

graysky commented on 2012-11-29 21:06

Bump to v1.80-1
Changelog: Fixed pesky \r from getting into work array.
Commit: https://github.com/graysky2/profile-cleaner/commit/51049bc30becb30aad5a0e12cf1a3c0668f84ecf

graysky commented on 2012-11-28 22:11

Bump to v1.80-1
Changelog: Updated to be compatiable with profile-sync-deamon v5 series.
Updated to use parallel rather than for loops.
Commit: https://github.com/graysky2/profile-cleaner/commit/62810a2c2d0600d3ec12dcdeb81152bf50f2587f

graysky commented on 2012-09-16 12:22

Bump to v1.5-1
Changelog: fixed pesky \r from getting into work array
Commit: https://github.com/graysky2/profile-cleaner/commit/95604f35111952e5e3c8b3b0a6bfd306305f6b85

graysky commented on 2012-09-16 11:58

Bump to v1.4-1
Changelog: Added support for thunderbird and conkeror
Commit: https://github.com/graysky2/profile-cleaner/commit/5c375c54e99561735d203acfb8231b94ab9b0aad