From 5f26b7eef848e4b51a282be7003a5b538acb865c Mon Sep 17 00:00:00 2001 From: Eideen Date: Sat, 9 Nov 2019 01:20:28 +0100 Subject: [PATCH 1/3] Make Installation more noob friendly --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 9276779..f8e839e 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,17 @@ Besides regular C toolchain, you need btrfs userspace headers. On Debian (incl. derivatives like Ubuntu) they're in libbtrfs-dev, SuSE ships them inside libbtrfs-devel, they used to come with btrfs-progs before. Required kernel: 3.16, btrfs-progs: 3.18 (untested!). + +## Debian/Ubuntu example: + + +````bash +git clone git@github.com:kilobyte/compsize.git +cd compsize +make +sudo cp compsize /bin/ +```` +To run: +````bash +sudo compsize . +```` From c2828b5d922e5a2189b44024fb6f720f532afc44 Mon Sep 17 00:00:00 2001 From: Eideen Date: Fri, 21 Feb 2020 11:04:24 +0100 Subject: [PATCH 2/3] Add the distinction between repositorie and source --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8e839e..63ce1d5 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,19 @@ The fields are: * Referenced: apparent size of files (minus holes) The ioctl used requires root. +# Installation distributions repositories: +The recommended way to install compsize is via distributions repositories official repositories -# Installation: +## Debian/Ubuntu example: +````bash +sudo apt install btrfs-compsize +```` +To run: +````bash +sudo compsize . +```` + +# Installation from source: Besides regular C toolchain, you need btrfs userspace headers. On Debian (incl. derivatives like Ubuntu) they're in libbtrfs-dev, SuSE ships them @@ -45,6 +56,7 @@ Required kernel: 3.16, btrfs-progs: 3.18 (untested!). ````bash git clone git@github.com:kilobyte/compsize.git +sudo apt install libbtrfs-dev cd compsize make sudo cp compsize /bin/ From fb407d51f32da886aa02e11e0007daf0119b6966 Mon Sep 17 00:00:00 2001 From: Eideen Date: Fri, 21 Feb 2020 11:08:00 +0100 Subject: [PATCH 3/3] removed the cp to /bin/ --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 63ce1d5..bde760e 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,8 @@ git clone git@github.com:kilobyte/compsize.git sudo apt install libbtrfs-dev cd compsize make -sudo cp compsize /bin/ ```` To run: ````bash -sudo compsize . +sudo ./compsize . ````