New answers tagged

0

Actually it is possible to count code directly with the .deb file--assuming the .deb file contains source code--using cloc's --extract-with switch: cloc --extract-with='dpkg-deb -x >FILE< .' ../cloc_1.60-1_all.deb 2 text files. 2 unique files. 1 file ignored. https://github.com/AlDanial/cloc v 1.66 ...


2

You need to run cloc on the source package, not on the binary package — cloc_1.60-1.1_all.deb is the binary package. This works: dget -d http://httpredir.debian.org/debian/pool/main/c/cloc/cloc_1.60-1.1.dsc cloc cloc_1.60.orig.tar.gz and shows 12 text files. 7 unique files. 9 files ignored. ...


0

The other answers don't show the UUID which is useful to use as reference in boot scripts and configs like /etc/hdparm. so here: $ sudo lsblk --output NAME,FSTYPE,LABEL,UUID,MODE NAME FSTYPE LABEL UUID MODE sda brw-rw---- ├─sda1 ntfs WinHyperX ...


1

On Fedora, it is also possible to get the gresource binary without installing GLib from sources by just installing the glib2-devel package:- su -c 'dnf install glib2-devel' (or sudo dnf install glib2-devel if you have sudo rights) This will make gresource available as /usr/bin/gresource.



Top 50 recent answers are included