You are not logged in.

#1 2015-03-04 22:34:00

DoTheEvolution
Member
Registered: 2014-05-07
Posts: 24

Size reporting on uninstal is considerably smaller than sum of files

Hi

Working on my first package/program
It uses quite a large database (from 20-500MB)
but on pacman -R the reported size of freed space is under 1MB (tried on my main system with btrfs but also on few virtual box machines)
It is aware of the database and it does gets removed on -R

One reason for this might be that I am tracking the database file by creating an empty one during the package() phase
It gets populated by data on the first run.
So maybe if the size of the application is calculated on install? Though it seems unlikely.
Theres also the fact how the update of the database file works, a new database file is created in tmp, populated with data, indexed, and then its mv -f on the old database

but I dont think this should play role when the file is actually getting removed from the system on pacman -R

Anyway is it normal? Some shortcoming of pacman? Or am I doing something wrong?
Heres PKGFILE

# Maintainer: DoTheEvolution <DoTheEvo@gmail.com>
pkgname="angrysearch"
pkgver=0.8.2
pkgrel=1
pkgdesc="Instant file search"
arch=("any")
url="https://github.com/dotheevo/$pkgname/"
license=("GPL")
depends=("python-pyqt5" "libxkbcommon-x11" "mlocate" "sudo" "xdg-utils")
source=("https://github.com/DoTheEvo/ANGRYsearch/archive/v$pkgver.tar.gz")
md5sums=("50e3806bc9fe396990781836af22ae37")

package() {
 cd "ANGRYsearch-$pkgver"
 install -Dm755 angrysearch.py "$pkgdir/usr/share/$pkgname/angrysearch.py"
 install -Dm644 angrysearch.svg "$pkgdir/usr/share/pixmaps/angrysearch.svg"
 install -Dm644 angrysearch.desktop "$pkgdir/usr/share/applications/angrysearch.desktop"

 cd "$pkgdir"
 install -d "var/lib/$pkgname"
 touch "var/lib/$pkgname/angry_database.db"

 install -d "usr/bin"
 ln -s "$pkgdir/usr/share/angrysearch/angrysearch.py" "$pkgdir/usr/bin/angrysearch"
}

Last edited by DoTheEvolution (2015-03-04 22:42:56)

Offline

#2 2015-03-04 22:47:19

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Size reporting on uninstal is considerably smaller than sum of files

Unpack one of the package files and look at the dot files inside it - they have the size of the package and the size of individual files in the package. This is most probably the size shown when installing/uninstalling.

Last edited by lucke (2015-03-04 22:47:41)

Offline

Board footer

Powered by FluxBB