If you install pkg then you can install the man command as follows:
Code: Select all
HIDE_BUILTINS=false pkg --get man-db_2.9.3-2 -f
** Example done via upupGG+D. On tahr you can see what version of "man-db" is available using the command "pkg --names-all man-db"
** Also if you use set "HIDE_BUILTINS=false" then make sure that you add libc6 to your blacklist.
Installing man-db (which contains the "man" command) , will overwrite the following symlink
the overwritten symlink points to pman, which looks up a url for the manpage on the internet via the default browser. As an alternative to this script you can type in google something like "man bash" or "manpage bash" as an alternative to using this pman script. Also for abbreviated instructions you can type something like "bash --help" on the command prompt.
Anyway, once you install "man" command, then you will likely want to install some documentation packages which can be installed via the ppm (puppy package manager) or via pkg as follows:
Code: Select all
pkg --get manpages_5.09-2 manpages-posix_2013a-2
However, for many packages the manpages are bundled in with the package. If the package was already installed in puppy first then these files will likely have been striped from the package. So what we can do is create a new package that just has the documentation or even just the manpages. To do this first download the deb file and create a directory to put the files that you want to add into your system:
Code: Select all
# pkg --download bash #download the package
# cd ~/pkg
# ls ./bash*
./bash_5.0-6ubuntu2_i386.deb ./bash_5.0.deb
# mkdir -p /root/extract/bash_doc-5.0-ALL #Make a folder to extract the files that you want (i.e. the manpages)
** Note, I'm using the pound sign to denote the prompt here rather than a comment.
To extract the files you can use the following command:
Code: Select all
# uextract ./bash_5.0-6ubuntu2_i386.deb -o ~/extract/bash_5.0-6ubuntu2_i386
uextract is available in the puppy package manager. If you do that then you will have to copy the extracted files into the folder we created above. You want to copy the following files (keeping the directory structure)
Code: Select all
/usr/share/man/man1/bash.1.gz
/usr/share/man/man1/bashbug.1.gz
/usr/share/man/man1/clear_console.1.gz
/usr/share/man/man1/rbash.1.gz
/usr/share/man/man7/bash-builtins.7.gz
/usr/share/menu/bash
https://packages.debian.org/jessie/i386/bash/filelist
into /root/extract/bash_doc-5.0-ALL. This can be done using either: a file manager, the cp commoand, rsync or the cpio -d commoand. Alternatively, you can move the files that you want into this folder either via the mv command or via the file manager.
However, we can skip this intermediate step by directory extracting the files from the deb that we want into this folder but this likely requires both the full version of dpkg and the full version of tar, which we will likley also need "pkg" to install.
Assuming we have both the full version of tar and dpkg then we can do the following:
Code: Select all
cd /root/extract/bash_doc-5.0-ALL
dpkg-deb --fsys-tarfile ../bash_5.0-6ubuntu2_i386.deb | tar -x --wildcards './usr/share/man/*'
Another command that we could have used to extract the .deb file was the "ar" command, which is available via the devx package. Anyway, regardless of how we extracted the file, now we create a pet file.
Code: Select all
cd /root/extract/
dir2pet bash_doc-5.0-ALL
The pet file will be cretead in the /root/extract directory. You can either click on it and select install, or alternatively use one of the following commands:
Code: Select all
petget bash_doc-5.0-ALL.pet #I need to verify this
or alternatively
The above procedure requires a package manager called "pkg" which was developed by Scottman. You can download the package manager at:
https://gitlab.com/sc0ttj/Pkg/-/wikis/home
You can download this program as a tar.gz file:
Pkg-master.tar.gz
Extract the file and then run the installer.sh script to install it.
**It might require further setup. Let me know if you have issues.
Note that you can skip the process of creating a pet by copying the files you want from the .deb directly into your system. If you do this though then there won't be a record of what you installed, so you can't ask the package manager to uninstall these files at a future date.