You are not logged in.
Is the only way for me to get httpasswd is to build it from apache-tools using PKGBUILD/makepkg?
Offline
$ pacman -Fs htpasswd
extra/apache 2.4.37-1
usr/bin/htpasswd
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I should have said that I'm using lighttpd and I'd rather not install full apache pkg. Is there a way to extract the /usr/bin/htpasswd from the apache pkg using pacman?
Offline
Things don't work that way. You could make a PKGBUILD just for the tools, but why? Installing apache doesn't do much other than install files, same as most packages.
Last edited by Scimmia (2018-12-02 21:30:33)
Online
Is there a way to extract the /usr/bin/htpasswd from the apache pkg using pacman?
Yes:
$ sudo pacman -S apache
resolving dependencies...
looking for conflicting packages...
Packages (1) apache-2.4.37-1
Total Installed Size: 6.27 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [#########################################################################################################] 100%
(1/1) checking package integrity [#########################################################################################################] 100%
(1/1) loading package files [#########################################################################################################] 100%
(1/1) checking for file conflicts [#########################################################################################################] 100%
(1/1) checking available disk space [#########################################################################################################] 100%
:: Processing package changes...
(1/1) installing apache [#########################################################################################################] 100%
Optional dependencies for apache
lua: for mod_lua module [installed]
libxml2: for mod_proxy_html, mod_xml2enc modules [installed]
curl: for mod_md module [installed]
jansson: for mod_md module [installed]
brotli: for mod_brotli module [installed]
uwsgi: for mod_proxy_uwsgi module [installed]
lynx: apachectl status [installed]
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
(2/3) Creating temporary files...
(3/3) Arming ConditionNeedsUpdate...
$ sudo cp /usr/bin/htpasswd /usr/local/bin/htpasswd
$ sudo pacman -Rncs apache
checking dependencies...
Packages (1) apache-2.4.37-1
Total Removed Size: 6.27 MiB
:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
(1/1) removing apache [#########################################################################################################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
$ which htpasswd
/usr/local/bin/htpasswd
$ htpasswd -nb foo basr
foo:$apr1$LcseXPyf$ZjyehWDiGJOM5fZxu2Tkf.
$ ldd /usr/local/bin/htpasswd
linux-vdso.so.1 (0x00007ffe2d5c6000)
libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x00007f28619f6000)
libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x00007f28619be000)
libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0x00007f2861984000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2861963000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f286179f000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f2861763000)
libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f2861758000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2861753000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f2861c2d000)
Last edited by schard (2018-12-04 06:48:50)
Offline