Closed mmatongo closed 3 years ago
the part that confuses me more here is the bars
why are there 12?
can you try on an unmodified version?
and can you show the contents of that dir
Okay
also on some of the other distros the package count is a off by a few, not really anything i can do about those.
not sure about kiss though.
https://asciinema.org/a/O05FgiKTwko86f1cgWzCfLdS8 Still behaves the same.
please don't use asciinema, it's just a needless middleman, just show a screenshot and or copy the output, also you didn't show the contents of the package dir mentioned ya know, in the line you quoted.
also i am an idiot, 12 is normal, they're just a lot wider in the browser.
Ahh sorry, I misunderstood. I can't take a screenshot.
But this is the output of ls -A
, there are 137 entries in the in the install dir.
total 548
drwxr-xr-x 3 root root 4096 Oct 21 16:21 alsa-lib
drwxr-xr-x 2 root root 4096 Oct 21 16:22 alsa-utils
drwxr-xr-x 2 root root 4096 Oct 28 21:36 asciinema
drwxr-xr-x 2 root root 4096 Aug 11 19:18 baseinit
drwxr-xr-x 3 root root 4096 Aug 11 19:18 baselayout
drwxr-xr-x 2 root root 4096 Aug 11 19:18 bash
drwxr-xr-x 2 root root 4096 Sep 23 14:13 binutils
drwxr-xr-x 2 root root 4096 Oct 13 20:21 bison
drwxr-xr-x 2 root root 4096 Aug 11 19:18 brillo
drwxr-xr-x 3 root root 4096 Oct 6 20:21 bubblewrap
drwxr-xr-x 4 root root 4096 Aug 18 00:22 busybox
drwxr-xr-x 2 root root 4096 Aug 11 19:18 bzip2
drwxr-xr-x 2 root root 4096 Oct 18 16:50 ccache
drwxr-xr-x 2 root root 4096 Oct 14 19:35 curl
drwxr-xr-x 3 root root 4096 Oct 14 19:36 dhcpcd
drwxr-xr-x 2 root root 4096 Sep 19 15:26 dmenu
drwxr-xr-x 2 root root 4096 Aug 11 19:18 e2fsprogs
drwxr-xr-x 2 root root 4096 Aug 11 19:18 efibootmgr
drwxr-xr-x 3 root root 4096 Aug 11 19:18 efivar
drwxr-xr-x 3 root root 4096 Aug 11 19:18 eiwd
drwxr-xr-x 2 root root 4096 Aug 11 19:18 esh
drwxr-xr-x 3 root root 4096 Aug 11 19:18 eudev
drwxr-xr-x 2 root root 4096 Oct 4 11:42 expat
drwxr-xr-x 2 root root 4096 Oct 28 21:22 fetsh
drwxr-xr-x 2 root root 4096 Sep 13 01:26 ffmpeg
drwxr-xr-x 2 root root 4096 Aug 11 19:18 flex
drwxr-xr-x 3 root root 4096 Aug 11 19:18 fontconfig
drwxr-xr-x 2 root root 4096 Aug 29 17:06 freetype-harfbuzz
drwxr-xr-x 2 root root 4096 Oct 28 15:22 fribidi
drwxr-xr-x 3 root root 4096 Oct 25 12:07 gcc
drwxr-xr-x 3 root root 4096 Oct 27 20:57 gcc-multilib
drwxr-xr-x 2 root root 4096 Aug 11 19:18 giblib
drwxr-xr-x 2 root root 4096 Oct 23 10:43 git
drwxr-xr-x 2 root root 4096 Oct 20 15:12 glib
drwxr-xr-x 2 root root 4096 Aug 11 19:18 gmp
drwxr-xr-x 2 root root 4096 Aug 11 19:18 gnupg1
drwxr-xr-x 3 root root 4096 Sep 29 12:58 grub
drwxr-xr-x 2 root root 4096 Aug 11 19:18 gzip
drwxr-xr-x 2 root root 4096 Oct 27 21:28 hsetroot
drwxr-xr-x 2 root root 4096 Oct 27 20:31 imlib2
drwxr-xr-x 2 root root 4096 Sep 12 11:36 kiss
drwxr-xr-x 2 root root 4096 Sep 13 01:26 lame
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libICE
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libSM
drwxr-xr-x 2 root root 4096 Aug 25 22:20 libX11
drwxr-xr-x 2 root root 4096 Sep 13 01:26 libXScrnSaver
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXau
drwxr-xr-x 2 root root 4096 Oct 14 19:56 libXdamage
drwxr-xr-x 2 root root 4096 Oct 14 19:56 libXext
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXfixes
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXfont2
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXft
drwxr-xr-x 2 root root 4096 Oct 27 20:32 libXinerama
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXmu
drwxr-xr-x 2 root root 4096 Oct 14 19:56 libXrandr
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXrender
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXt
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libXxf86vm
drwxr-xr-x 2 root root 4096 Oct 28 15:23 libass
drwxr-xr-x 2 root root 4096 Oct 7 22:19 libcap
drwxr-xr-x 2 root root 4096 Oct 27 20:48 libconfig
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libdrm
drwxr-xr-x 4 root root 4096 Sep 12 15:46 libelf
drwxr-xr-x 2 root root 4096 Oct 14 19:56 libepoxy
drwxr-xr-x 2 root root 4096 Aug 11 19:18 liberation-fonts
drwxr-xr-x 2 root root 4096 Oct 27 20:48 libev
drwxr-xr-x 2 root root 4096 Oct 28 15:24 libevdev
drwxr-xr-x 2 root root 4096 Sep 4 19:11 libevent
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libffi
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libfontenc
drwxr-xr-x 2 root root 4096 Oct 7 22:19 libinput
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libjpeg-turbo
drwxr-xr-x 2 root root 4096 Sep 13 01:26 libogg
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libpciaccess
drwxr-xr-x 3 root root 4096 Aug 11 19:18 libpng
drwxr-xr-x 3 root root 4096 Oct 21 15:02 libressl
drwxr-xr-x 2 root root 4096 Sep 13 01:26 libvorbis
drwxr-xr-x 4 root root 4096 Sep 13 01:26 libvpx
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libwebp
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libxcb
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libxkbfile
drwxr-xr-x 2 root root 4096 Aug 11 19:18 libxshmfence
drwxr-xr-x 2 root root 4096 Aug 11 19:18 linux-firmware
drwxr-xr-x 2 root root 4096 Aug 11 19:18 linux-headers
drwxr-xr-x 4 root root 4096 Oct 20 21:34 linux-lts
drwxr-xr-x 2 root root 4096 Oct 12 05:55 llvm
drwxr-xr-x 2 root root 4096 Aug 11 19:18 m4
drwxr-xr-x 2 root root 4096 Aug 11 19:18 make
drwxr-xr-x 2 root root 4096 Oct 18 13:23 mesa
drwxr-xr-x 2 root root 4096 Sep 13 01:29 mpv
drwxr-xr-x 2 root root 4096 Aug 11 19:18 mtdev
drwxr-xr-x 3 root root 4096 Aug 11 19:18 musl
drwxr-xr-x 2 root root 4096 Aug 11 19:18 ncurses
drwxr-xr-x 2 root root 4096 Aug 11 19:18 neovim
drwxr-xr-x 2 root root 4096 Aug 11 19:18 openresolv
drwxr-xr-x 3 root root 4096 Sep 26 22:01 openssh
drwxr-xr-x 2 root root 4096 Sep 13 01:26 opus
drwxr-xr-x 2 root root 4096 Oct 18 16:50 pandoc-bin
drwxr-xr-x 2 root root 4096 Oct 27 20:32 perl
drwxr-xr-x 2 root root 4096 Oct 28 21:20 pfetch
drwxr-xr-x 2 root root 4096 Oct 27 20:54 picom
drwxr-xr-x 2 root root 4096 Sep 8 19:08 pixman
drwxr-xr-x 3 root root 4096 Oct 23 09:50 python
drwxr-xr-x 2 root root 4096 Oct 27 22:04 readline
drwxr-xr-x 2 root root 4096 Aug 11 19:18 scrot
drwxr-xr-x 2 root root 4096 Oct 25 23:30 sct
drwxr-xr-x 2 root root 4096 Aug 11 19:18 sowm
drwxr-xr-x 2 root root 4096 Aug 16 10:49 sqlite
drwxr-xr-x 2 root root 4096 Aug 11 19:18 st
drwxr-xr-x 2 root root 4096 Sep 24 10:50 sudo
drwxr-xr-x 2 root root 4096 Aug 11 19:18 sx
drwxr-xr-x 3 root root 4096 Oct 27 22:04 tlp
drwxr-xr-x 2 root root 4096 Aug 11 19:18 tmux
drwxr-xr-x 2 root root 4096 Sep 18 00:45 transmission
drwxr-xr-x 2 root root 4096 Oct 24 16:51 tree
drwxr-xr-x 2 root root 4096 Oct 27 22:04 util-linux
drwxr-xr-x 3 root root 4096 Aug 11 19:18 wpa_supplicant
drwxr-xr-x 3 root root 4096 Sep 13 01:26 x264
drwxr-xr-x 2 root root 4096 Sep 13 01:26 x265
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xauth
drwxr-xr-x 2 root root 4096 Oct 14 19:36 xcb-proto
drwxr-xr-x 2 root root 4096 Oct 27 20:48 xcb-util
drwxr-xr-x 2 root root 4096 Oct 27 20:48 xcb-util-image
drwxr-xr-x 2 root root 4096 Oct 27 20:48 xcb-util-renderutil
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xclip
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xf86-input-libinput
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xkbcomp
drwxr-xr-x 3 root root 4096 Oct 7 16:10 xkeyboard-config
drwxr-xr-x 3 root root 4096 Aug 31 12:13 xorg-server
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xorg-util-macros
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xorgproto
drwxr-xr-x 2 root root 4096 Sep 19 20:15 xrandr
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xrdb
drwxr-xr-x 2 root root 4096 Sep 13 01:26 xvidcore
drwxr-xr-x 2 root root 4096 Aug 11 19:18 xz
drwxr-xr-x 2 root root 4096 Aug 11 19:18 zlib
drwxr-xr-x 3 root root 4096 Aug 11 19:18 zsh
do any of the other dirs exist, for example /var/db/pkg
? [an example, check them all]
the kiss one is checked first, so it'll get overridden if any of the other dirs exist.
Under /var/db/kiss
everything is separated to 3 directories namely choices
, installed
, repo
.
choices
contains symlinks.
repo
contains the core repo
installed
contains all installed packages
I meant the other dirs checked by fet.sh, as in the lines below the kiss line which you quoted, so these dirs: /var/lib/pacman/local/ /var/lib/dpkg/info/ /var/db/xbps/ /var/db/pkg/*/
On Thu, 29 Oct 2020 at 16:37, Daniel M. Matongo notifications@github.com wrote:
Under /var/db/kiss everything is separated to 3 directories namely choices, installed, repo. choices contains symlinks. repo contains the core repo installed contains all installed packages
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/6gk/fet.sh/issues/27#issuecomment-718394290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTNVSWHM7Q6AC4ZTHS2B7DSNEES3ANCNFSM4TCYTWUQ .
There's nothing in there remotely related;
total 24
drwxr-xr-x 2 root root 4096 Aug 2 01:31 alsa
drwxr-xr-x 3 root root 4096 Oct 6 20:56 flatpak
drwxr-xr-x 2 root root 4096 Aug 1 23:27 init
drwx------ 2 root root 4096 Aug 2 20:49 iwd
drwxr-xr-x 2 root root 4096 Nov 11 2019 misc
drwxr-xr-x 2 root root 4096 Oct 27 22:04 tlp
closing as user error; the dirs shouldn't even exist. You're showing the output of ls -l
without even showing what dir you're running it from, not to mention, ls -l
is extremely spammy and large.
The dirs in /var/lib
are state files, they generate during normal system use, it's never advised to modify them.
I've already shown you the results of each directory as you've requested, I don't see how this is user error when neofetch
, pfetch
and fetch
all manage to pick up the correct package count.
And I used ls -A
both times.
The dirs in /var/lib are state files, they generate during normal system use, it's never advised to modify them.
What? When did I suggest that? When I said "they shouldn't exist" I wasn't saying to modify them, I was saying those other 5 dirs shouldn't exist unless you have another package manager installed.
I've already shown you the results of each directory as you've requested,
Yeah, nah, you didn't.
I requested to see the contents of one dir, you did, then i requested to see another 5 dirs and you only showed one but didn't even say which one it was.
when neofetch, pfetch and fetch all manage to pick up the correct package count.
they use commands, not files.
And I used ls -A both times.
You have an alias. That is the output of ls with the l
option.
and here I was, thinking kiss users knew their way around the shell...
What? When did I suggest that? When I said "they shouldn't exist" I wasn't saying to modify them, I was saying those other 5 dirs shouldn't exist unless you have another package manager installed.
You're telling me they shouldn't be there, are you suggesting that I should delete them?
I've already shown you the results of each directory as you've requested,
Yeah, nah, you didn't.
I requested to see the contents of one dir, you did, then i requested to see another 5 dirs and you only showed one but didn't even say which one it was.
Five other directories that do not exist. I did not say which one it was because I assumed you would read your own comment asking me for the specific dir.
do any of the other dirs exist, for example /var/db/pkg? [an example, check them all]
explains the layout of /var/db/kiss
so these dirs: /var/lib/pacman/local/ /var/lib/dpkg/info/ /var/db/xbps/ /var/db/pkg/*/
shows ls in an unspecified dir "nothing remotely related in there"
kinda had enough, sorry, don't wanna start insulting even more
again, sorry, haven't had the best week
It’s fine. I apologise if I offended you in any way, it was never my intent. Thank you 🙏
dm@mm
os ~ kiss
sh ~ sh
wm ~ sowm
up ~ 00:59
pkgs ~ 144
term ~ st
▅▅▅▅▅▅▅▅▅▅▅▅
Working just fine now.
https://github.com/6gk/fet.sh/blob/5d432d2c67f0723a1dde41ad066d4bc2fc15282a/fet.sh#L109
Running fet.sh on KISS Linux i get a wrong package count.