Assistance from someone more knowledgeable than me here for the below is most gratefully acknowledged
francois wrote:
goossbears wrote:If you are talking about installing the downloaded packages, the best thing is to have them transformed into modules (.xzm) at the same time that you download them (with the usm gui, command line usm does not have this option). This way there will be no need to install packages with installpkg removepkg if you have choosen within usm package manager to transform .txz to .xzm packages into modules. For the packages to become functional you will have transfer these into a dedicated folder which is /porteus/modules folder and reboot if there are many, or simply activate them one by one (installing them) by double clicking on them or using the right click contextual menu.
I was given a recommendation (as a Porteus n00B) from someone more knowledgable than me to rather copy any required Slackware disksets locally from <slackware mirror>/slackware/slackware-14.1/slackware/<diskset> and then use installpkg or pkgtool on the locally-stored diskset pkg's instead of using the USM GUI and/or transforming them into .xzm modules.
2. Use the find command as follows with sudo to locate your particular <diskset>/pkg locally (here I am searching to install the geany pkg):
Code: Select all
sudo find -type f -name geany-* -print
We instead found a slacky repository containing a working geany package at http://pkgs.org/slackware-14.1/slacky-i ... l.txz.html, and copied this slacky package directly to /mnt/sdXN/porteus/optional .
Once we've found the exact local location for our package or successfully downloaded it from an online repository, then we run pkgtool/installpkg as
Code: Select all
sudo installpkg /mnt/sdXN/porteus/optional/path-to-geany*txz
Note that this is nearly identical to the steps francois mentions on top.
For geany, here's how it might work (pay careful attention to the target path!):
Code: Select all
sudo txz2xzm /mnt/sdXN/porteus/optional/path-to-geany*txz /mnt/sdXN/porteus/modules/geany*xzm
- activate /mnt/sdXN/porteus/modules/geany*xzm by by double clicking the module geany in /mnt/sdXN/porteus/modules
Code: Select all
sudo find /mnt/sdXN/porteus/optional -type f -name geany-* -exec rm -f {} \;
To demonstrate this alternative with an example, we'll use vim here.
We start by repeating step 2 by running
Code: Select all
sudo find /mnt/sdXN/porteus/optional -type f -name vim-* -print
Code: Select all
sudo installpkg /mnt/sdXN/porteus/optional/path-to-vim*txz
When we try to run vim, we unfortunately get the unmet dependency error
.vim: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
This alternative is ridiculously clumsy, since when we look for libpython2.7.so.1.0 using
Code: Select all
sudo find /mnt/sdXN/porteus/optional -type f -name libpython* -print
We can consider ourselves very fortunate, though, to find the python package containing libpython2.7.so.1.0 without excessive package dependency-hunting once we run
Code: Select all
sudo find /mnt/sdXN/porteus/optional -type f -name python* -print
Once we've found the python package providing our needed dependency (here it's /mnt/sdXN/porteus/optional/d/python-2.7.5-i486-1.txz), we can then install it via
Code: Select all
sudo installpkg /mnt/sdXN/porteus/optional/path-to-python-2.7.5-i486-1.txz
But we're still not quite finished, as we're really out to install vim here, and the python-* package just provides the necessary dependency for vim.
We now have to repeat
Code: Select all
sudo find /mnt/sdXN/porteus/optional -type f -name vim-* -print
Code: Select all
sudo installpkg /mnt/sdXN/porteus/optional/path-to-vim*txz
Once vim runs acceptably, only then should step 3 be carried out, substituting vim-* for geany-* there.
Let us hope we all do not have to resort to manually installing packages with unmet dependencies, such as using pkgtool/installpkg for vim above.
Better yet is to fix the missing dependencies from USM and/or to fully resolve the non-Slackware dependencies as per http://forum.porteus.org/viewtopic.php?f=81&t=4529 and http://forum.porteus.org/viewtopic.php?f=75&t=4497 !!