Better command line tools, and pkg manager suggestions

What features/apps/bugfixes needed in a future Puppy
Message
Author
User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#61 Post by Keef »

Tried again on Stretch 7.0.0 with the line 2703 fix.
Downloads are ok but do get some warnings, eg:

Code: Select all

# pkg -g treesheets
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: /usr/sbin/pkg: /usr/sbin/pkg: line 19: cut: Argument list too long
line 19: line 19: sed: Argument list too longgrep: Argument list too long

/usr/sbin/pkg: line 19: sed: Argument list too long
/usr/sbin/pkg: line 19: basename: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
/usr/sbin/pkg: line 19: cut: Argument list too long
/usr/sbin/pkg: /usr/sbin/pkg: line 19: grep: Argument list too long/usr/sbin/pkg: 
line 19: grep: Argument list too long
line 19: sed: Argument list too long
/usr/sbin/pkg: /usr/sbin/pkg: /usr/sbin/pkg: line 19: cut: Argument list too long
line 19: grep: Argument list too long
line 19: sed: Argument list too long
/usr/sbin/pkg: line 19: grep: Argument list too long
Install package treesheets_20161120~git7baabf39-1_i386:  
Success: treesheets_20161120~git7baabf39-1_i386 installed.
Menu entry:	[None] -> TreeSheets
Resolving dependencies
No missing dependencies.
# treesheets 
treesheets: error while loading shared libraries: libwx_gtk2u_aui-3.0.so.0: cannot open shared object file: No such file or directory
# 
Also note the missing dependency.
Also happened with FBReader:

Code: Select all

...
Success: Downloaded /root/pkg/fbreader_0.12.10dfsg2-2+b1_i386.deb.
Install package fbreader_0.12.10dfsg2-2+b1_i386:  
Success: fbreader_0.12.10dfsg2-2+b1_i386 installed.
Menu entry:	Personal -> E-book reader
Resolving dependencies
No missing dependencies.            
# fbreader 
fbreader: error while loading shared libraries: libzltext.so.0.13: cannot open shared object file: No such file or directory
# 


User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

1.9.11

#62 Post by sc0ttman »

.. this won't fix all the errors posted above, but it's probably better...

Plus, now you can install/uninstall SFS files with the usual commands.
.. works best with SFS files created using dir2sfs or pkg --dir2sfs..

The following command should work OK with SFS 'packages':
(tested with torcs-1.3.7-i686_s700.sfs, qemu-2.4.1-i686_s700_6.9.11.sfs)

Code: Select all

pkg -i file.sfs # install
pkg -u file.sfs # uninstall
pkg -c file.sfs # list sfs contents
pkg -pi # is installed or not [returns true/false]
pkg -ps file.sfs # show pkg status
.. and you don't need to give the .sfs extension if the SFS file is in current dir or installed..
(but if you don't give the .sfs extension Pkg might get confused by SFS files with exact same names as repo PETs etc.. not sure yet)


Changelog for 1.9.11

Code: Select all

1.9.11
- added a fixed sfs_load called sfs_loadr, with fixes for the --cli option
- removed /usr/sbin/sfs_load_cli, outdated, not needed
- removed /usr/sbin/sfs_installer, outdated, not needed
- updated `pkg -i file.sfs` to install SFS like pkgs (uses sfs_loadr)
- updated `pkg -c file.sfs` lists SFS file contents too
- updated `pkg -u file.sfs` to uninstall SFS file (uses sfs_loadr)
- updated gpkgdialog to 0.3: cleaned up popup/tailbox output 
- fixed check bad pkg URLs (404s), dont download 
- fixed typo preventing .deb pkg install in install_pkg()
- fixed typo preventing parse correct pkg extension in pkg_unpack()
- fixes in get_pkg(), only install if pkg contents can be listed by pkg_contents()
- fixed a 'not getting deps properly' regression (I think)
- fixes in is_installed_pkg(), more accurate, fewer checks
- fixes in lucid repo stuff in ~/.pkg/sources-all
- cleanup download_pkg(), use download_progress script when called by gpkgdialog
- better error code handling and output .. Pkg fails a bit better/earlier
Attachments
pkg-1.9.11alpha-noarch.pet
(141.14 KiB) Downloaded 384 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#63 Post by Keef »

sc0ttman

I've found that pkg -go <package name> will download the named package without installing, but any dependencies get automatically installed, which may not be wanted.

On Lupu,

Code: Select all

pkg --update-sources
is not working.

Code: Select all

# pkg --update-sources
Error: Repo files not found. Check /root/.packages
I tried altering pkgrc again, and the minimum changes needed are to REPONAME and REPOFILE.
'pkg --update-sources' and 'pkg --repo lucid' will then run ok, and the 'sources' file is updated.

Tried the sfs options on Slacko and had no problems.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#64 Post by sc0ttman »

Hi Keef,

Were you running as root when `--updates-sources` didn't work?

Can you please give the the output of this in Lupu:

Code: Select all

pkg -rfl
.. it should list all the available repo files.. I wouldn't ask but they are not all on ibiblio..

Also, I'm guessing that if by default ~/.pkg/pkgrc had details for noarch (not slack14.2),
when it was installed, then that `--update-sources` problem would go away.. So I'll do that.

Thanks for the feedback
Last edited by sc0ttman on Wed 11 Oct 2017, 14:41, edited 1 time in total.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

1.9.12

#65 Post by sc0ttman »

Changelog for 1.9.12

Code: Select all

1.9.12
- fixes in searches using pkg aliases 
- fixes in is_local_pkg(), more reliable
- fixes in pkg_contents(), better at looking for WORKDIR/PKGNAME when not in WORKDIR
- fixes in pkg_contents(), removed error from output when pkgname comes from stdin (`pkg opts | pkg --contents -`)
- fixes in deb2pet(), now works better, cleaned up, uses the pkg_unpack() func
- fixed `pkg -go pkgname`: dont install pkgs, just download them
- fixed `pkg -PS pkgname`: lists deps sorted by missing/installed, more detailed than `pkg -ps pkgname`
- fixed `pkg --deps-check PKGNAME`: runs ldd on PKGNAME (must be an installed pkg) and prints msg about missing libs
- fixed TAB completion for --all-pkgs option
- fixes in RC files: use noarch repo on first run. See /etc/pkg/* and in ~/.pkg/*
- added new URLs for Trusty, Lucid and Precise repos: http://old-releases.ubuntu.com/ubuntu/
- added `pkg -pkg-entry PKGNAME`: list repo entry of pkg, each field on new line
- updated --list-deps,--list-installed: 
    # --list-deps default behaviour is still to "list all deps of pkg (not inc builtins)"
    # --list-installed default behaviour is still to "list all installed pkgs (not inc builtins)"
    # but they now support the env vars: HIDE_USER_PKGS, HIDE_BUILTINS [true or false] .. 
    # Pkg users can use these in combination to show all, only missing, already builtin, etc
    # EG:
     HIDE_USER_PKGS=true  HIDE_BUILTINS=true  pkg -le PKGNAME	# list only deps not yet installed:
     HIDE_USER_PKGS=true  HIDE_BUILTINS=false pkg -le PKGNAME   # list only the deps of PKGNAME that are already built in
     HIDE_USER_PKGS=false HIDE_BUILTINS=false pkg -le PKGNAME 	# list all deps of PKGNAME (as listed in its repo, inc builtins)
     HIDE_USER_PKGS=false HIDE_BUILTINS=false pkg -li PKGNAME 	# list all installed pkgs, inc builtins
     ...etc
- added `pkg -LE pkgname`: lists all deps, including builtins
- added `pkg -LI pkgname`: lists all installed pkgs, including builtins
- added the new capitalised options to help info [--help|-h|-H]
- added "NO_INSTALL" env var: replaces DEPINSTALL, GETINSTALL.. used by --get-only, --deps-download, others
Attachments
pkg-1.9.12alpha-noarch.pet
(141.91 KiB) Downloaded 371 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#66 Post by Keef »

sc0ttman

Yes, I was running as root.
Still getting no joy with Lupu:

First run after installing new version:

Code: Select all

# pkg -rfl
Error: Repo files not found. Check /root/.packages

#  pkg --update-sources
Error: Repo files not found. Check /root/.package
Same if I do --update-sources first.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Pkg 1.9.13

#67 Post by sc0ttman »

OK thanks Keef .. will just boot Lupu and sort it that way later..

I haven't forgot about the `Argument list too long stuff`- those errors will probably be
because the repo files in Ubuntu and Deb pups have so many pkgs in the repo files, or
because they have so many deps per pkg ..

I fixed the same errors ages ago in Tahr on my netbook ..

Here's a new one .. I have fixed a bunch of stuff, this ones one of the best version so far..
Not saying much admittedly at the mo, but this is now "getting there"..

Still only tested on Slacko 6.9.x for now..

This one fixes a lot of niggles.. It's now much more reliably loops through the pkgs/deps,
it trips up on far fewer caveats (already installed pkgs, builtins, in other repo, etc),,

In short --force works much better, and handling of ENV vars is much cleaner,
more options support the ENV vars, which all paves the way for easier handling
of install/remove builtins with a -F option.

Code: Select all

1.9.13
- added entries for Zesty repos to sources-all (not tested)
- added --autoclean option: auto-delete pkg files after they've been installed
	# use  `pkg --autoclean [yes|no]` (no is default upon install)
- cleanup, renamed some funcs, 
- fixes in various funcs to better support Pkgs ENV vars
- fixed download_pkg() not finding the pkg to download in current repo
- fixed call get_pkg() with full pkgname from get_deps()
- fixed get_deps() output messages, better ordered
- fixed various funcs: loop over pkgs and deps, dont skip or exit at the wrong time
- fixes when using --force option:
    # --force will list all deps, inc builtins
    # --force will re-download all pkgs, except builtins (by default)
    # --force will re-install all pkgs,  except builtins (by default)
    # --force will not install or uninstall builtins (that is coming soon..)
Attachments
pkg-1.9.13alpha-noarch.pet
(142.32 KiB) Downloaded 379 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

#68 Post by mistfire »

Hello I wrote a script that works like apt-get called puppy-get. Can you help me to improve it? the thread was in the cutting edge section.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

1.9.14

#69 Post by sc0ttman »

mistfire wrote:Hello I wrote a script that works like apt-get called puppy-get. Can you help me to improve it? the thread was in the cutting edge section.
Hi mistfire,

I looked at the code of your puppy-get, but didn't test it, in case it breaks my (flakey)
in-development setup.. But in the mean time, here's some suggestions:

I know you like pkg conversions and did a lot of scripts for it (which I will 'borrow' ;) ),
so maybe you want to look at my pkg_unpack() func in Pkg .. I stole the code
for it from Slackware somewhere, works lovely, small, simple, easily extended..

One feature I like to switch is autoclean, I think apt-get has it. Also reverse depends,
etc .. I have both of those in Pkg, see clean_pkgs() and list_dependants().

I will certainly pinch some code from yours (Arch pkg unpacking, etc), so obvs feel
free to steal anything you like from Pkg..

I am still trying to get together a consistent way to ignore (or not) builtin pkgs in
a nice and consistent way.. I am working towards a -F option, which works like -f,
but includes builtins too.. Easier to remaster, rebuild ISO, etc.

Any clever ideas in that area would be great (anyone?)

.. And if anyone could remove the BASH arrays from /etc/bash_completion.d/pkg,
and make TAB completion work in a busybox ASH shell, that would be amazing!
(This link would help, but I can't get my head around removing the BASH Array dependency)

Changelog for 1.9.14:

Summary

- Much better usage docs

Code: Select all

pkg -usage  # to see cmds list
pkg -usage CMD # to see usage
- more consistent CLI interface output, especially when user gives invalid usage
- fixes when using --ask and --force
- fixed various funcs to better support the available ENV vars
- code clean up, other fixes

Details

Code: Select all

1.9.14
- fixed list_dependants(): don't include the pkg being checked in the list, only its dependants
- fix pkg_download(): nicer output when using --ask
    * if not called with --ask, then always hide question tags
    * this fixes the output of funcs when Pkg disables $ASK internally, but user gave --ask option
- fix pkg_combine(): fixed some breaking changes from last version, added support for --ask and including BUILTINS
    * Use  `pkg --pkg-combine|-pc`  to combine a pkg with its deps, not including builtins.
    * Prefix above cmd with  HIDE_BUILTINS=false  to include builtins too
    * fixed: use --ask and Pkg will ask which pkgs to put into the final PET/SFS
- fixes in pkg_install(): better checking local files before install
- fixes in pkg_get(): works better when --force and --ask used together
    * dont error if user chooses to skip a download in the loop
- fixed pkg_update(): dont search or update builtin pkgs, unless  HIDE_BUILTINS=false  given
- cleanup naming of functions, more consistent
- cleanup CLI interace: fixed usage msgs not showing, fixed opts not accepting multiple pkgs
- cleanup code, moved help info to /usr/lib/pkg/docs/, source it in Pkg
- much nicer usage info: moved into /usr/lib/pkg/docs/usage/<cmd_name>
    * give cmd (--get, --download, etc) without options to see its usage info
    * or use `pkg --usage|-usage [CMD]` to see list or usage of available commands
Attachments
pkg-1.9.14alpha-noarch.pet
(147.17 KiB) Downloaded 375 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Pkg 1.9.15

#70 Post by sc0ttman »

Changelog for 1.9.15

Summary:
- fixes in finding where pkgs comes from (builtin, devx, user pkg, etc)
- fixes and clean up of first run
- fixes in package status output (cmd: pkg --pkg-status|-ps|-PS pkgname)
- new option: `pkg --no-color OPTS` (disables ANSI console colours)
- much nicer command-line interface (CLI):
  • * much easier to TAB auto-complete multiple pkg names for each option
    * much more robust and programmable
    * no longer required to encase multiple pkgs in quotes
    * pkgs can be delimited (separated) by space, comma (or a pipe when in quotes)
    * more options now support handling multiple pkgs
As of 1.9.15, all of the below commands are equivalent, and return the same result (the status of each pkg given):

Code: Select all

pkg -PS geany vlc netsurf-3.3 avidemux

Code: Select all

pkg -PS geany,vlc,netsurf-3.3,avidemux

Code: Select all

pkg -PS "geany|vlc|netsurf-3.3|avidemux"

Code: Select all

echo geany vlc netsurf-3.3 avidemux | pkg -PS -

Code: Select all

echo "geany vlc-2.2.4-i686_s700 netsurf-3.3 avidemux" | pkg -PS -

Code: Select all

echo "geany,vlc,netsurf-3.3,avidemux" | pkg -PS -

Code: Select all

echo "geany|vlc|netsurf-3.3|avidemux" | pkg -PS -

Code: Select all

echo "geany-1.27
vlc-2
netsurf
avidemux" | pkg -PS -
This makes Pkg much more 'programmable' - easier to use Pkg in your own code.

Full Changelog:

Code: Select all

1.9.15
- added msg about enabling TAB auto-completion if not enabled
- added option: `pkg --no-colour|--no-color|-nc` .. an easier way to disable colours
    * added usage info in /usr/lib/pkg/docs/usage/no-colour
    * do `pkg -usage no-colour`
- cleanup: simpler creation of WORKDIR, simpler exit if fail to find WORKDIR
- cleanup: when finding avail repos on first run (see 'final checks' section)
- fixed: was missing usage help info for `--pkg-entry`
- improvements in CLI interface, more robust, more programmable:
    * supports passing multiple PKGs to most options, with or without quotes
    * PKGs can be delimited (separated) by space, comma (or a pipe when in quotes)
    * you can still pipe (newline or space delimited) lists into Pkg if you give dash (-) as its last option:
	example: `echo geany vlc | pkg -PS -` will print status of both pkgs
    * if piping stuff, use -ss and -ssa for pipe-able search output (-s and -s produce fancy ouput)
- fixed: include devx pkgs in `pkg -LI`, which should list ALL installed pkgs
- fixes in finding where pkg comes from: 
    * same fixes applied to: is_usr_pkg(), is_devx_pkg(), is_builtin_pkg(), is_repo_pkg(), is_installed_pkg()
- fixed repo_file_list(): takes repo name returns name of its repo file,
    * fixed a failure to return the correct, matching repo file in some cases
- fixes in pkg_status(): 
    * show correct install status (user,devx,builtin,layers)
    * fixed missing repo filenames (see repo_file_list)
    * standardise output: add 'K' to end of $pkg_size, if not already there
Attachments
pkg-1.9.15alpha-noarch.pet
(147.27 KiB) Downloaded 378 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#71 Post by sc0ttman »

Changelog for 1.9.16

Summary:

- fixed a bug in hiding installed pkgs, now works fine, uses less code
- fixes to various funcs listing of pkgs, and to docs .. some small cleanups
- fixes to the frontends to work with latest Pkg changes
- added Xpkgdialog frontend (a symlink to pkgdialog called Xpkgdialog, which uses 'Xdialog' instead of 'dialog')

Code: Select all

1.9.16
- cleanup and improvements in hide_installed_pkgs_from_search_results():
    * fixes in using HIDE_INSTALLED - does its job more accurately, less code
- added option: `pkg --welcome` invokes first_run(), prints welcome screen with helpful tips
- improvement: `pkg -la` (delete all pkgs in WORKDIR) will confirm before deleting all pkgs
- small fixes, clean ups and updates in man page, README, help text.
- fixed: create layers-installed [inc devx pkgs if devx loaded] on Pkg load
    * this also helps removes PetGet as a dependency of Pkg
- cleanup: always use $HOME not '/root' (except when trying to fix missing repo files on first run)
    * Pkg should work better when users $HOME dir not /root 
- fixed list_installed_pkgs(): 
    * if called with -li, list only user installed pkgs (same as PetGet)
    * if called with -LI, list all installed pkgs inc builtins [and devx pkgs]
- cleanup: replace all `expr 2 + 2` with $((2 + 2)) (ash supports it going way back, I think)
- update: Gpkgdialog 0.4: includes fixes for listing of repo pkgs without installed pkgs
- update: Pkgdialog 0.6:
    * new: call as Xpkgdialog to use the Xdialog interface
    * speedup: set LANG=C for whole script (and set LANG back to prev value at end)
    * speedup: now using ash, not bash (Search All can still be really sloooow)
    * nicer styling, removed box shadows, bigger menus
    * fixed: updated some labels on exit and cancel buttons
    * fixed: allow override of HIDE_INSTALLED.. Usage: `HIDE_INSTALLED=true|false pkgdialog`
    * fixed: use --textbox to show help info and current settings config
    * various fixes to menu navigation in following sections:
	- fixed: use a --tailbox when installing/removing/updating/converting/combining pkgs
	- fixed: ask to install/uninstall pkg(s) after pkg selection in 'Search' and 'Downloaded'
	- fixed: ask to uninstall pkg(s) after pkg selection in 'Installed'
	- fixed: get pkg lists for combine/convert pkgs
I'm gonna be commuting 4 hours a day from now on (as of today, first day at new job) so this is what I did over the last few days..
I will prob be able to get some more Pkg stuff done on the train, might make the commute a bit quicker lol

If nothing else, I will keep picking away at it when I find time, I have a huge to do list I wanna get through..

TODO, in short:

- code refactor: replace all code repetitions with calls to a single func that does the job instead
- various bug fixes, UI output improvements,
- get rid of all dependencies on Petget (refactor some Petget files into Pkg funcs)
- add feature: add/remove builtins
- add feature: install to $DESTDIR instead of /
- add feature: a --chroot option, allows using pkg in another (compatible) fs
- much more..
Attachments
pkg-1.9.16alpha-noarch.pet
(147.85 KiB) Downloaded 358 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#72 Post by sc0ttman »

A more long term roadmap would be:

1. Get Pkg working in lots of new pups (zesty, arty, slacko, etc)
2. Get pkg working in some older woof-CE built pups ..
3. Get pkg working with Woofy (my own remaster tool, so Pkg can help Woofy add/remove pkgs from ISO, with dep resolution)
4. Get pkg working with Woof-CE (rip some woof-ce guts out and use pkg to build the repos, compile/download the pets instead, etc)

-----------------------------------------------------------------------------------

As this is still in suggestions ...Let me suggest something...

I really like booting a distro, seeing all the security updates available, and being asked to install them...
Is that just me?


Cos I'm trying to work out how to do this in Puppy using Pkg, but Puppy merges the relevant stuff into
the 'main' repo on your system, making it harder to work out which new pkgs are security patches/updates.. So....

I might need to steal 0setup, add it to the Pkg pet, change it a bit, so that it doesn't merge the fixes/security pkgs into the main
repo, and instead keeps them in their own repo files, as they were.

Then `pkg --repo-update` should create the right repos, each in its own file, which would
then make it easier to check (and list) newly patched/fixed security pkgs on first boot...

Just like the big boys..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Pkg 1.9.17

#73 Post by sc0ttman »

Changelog for 1.9.17

Summary:

- new option: change rc file location with PKGRC env var
- new option: `pkg --what-needs <pkgname>` .. reverse dependency lookup
- fixes for the `--usage` command, improved output
- fixes in listing pkgs, inc fixes for supporting HIDE_INSTALLED env var
- fixed `pkg --list-deps <pkgname>` (used internally by Pkg, so fixes other things too):
  • * fixed, show deps that are already installed, achieved by moving some code from list_deps() to find_deps()
    * this retains the faster dep searches of recent versions, but brings back the correct behaviour of including user installed pkgs in the `--list-deps` output
    * use `pkg -le <pkgname>` to list deps, excluding builtins
    * use `pkg -LE <pkgname>` to list deps, including builtins
    * both will once again include user installed pkgs in the list, as they should
    * this also fixes some output in other commands, like `--pkg-status`

Code: Select all

1.9.17
- new: allow override default rc file location (~/.pkg/pkgrc) with $PKGRC env var 
- new: `pkg --what-needs PKGNAME`, list the pkgs that depend on PKGNAME .. (reverse dep lookup)
- fixed pkg_install(): clean up .csh files post install, silence output of 'glib-compile-schemas' and 'gio-querymodules'
- fixed pkg_build(): add error message when trying to build pkg that doesn't exist (using petbuild)
- fixed list_build_scripts(): dont output empty lines
- fixed list_dependants(): also list builtins if HIDE_BUILTINS=false
- fixed find_deps(): remove builtins from list unless HIDE_BUILTINS=false
- fixed list_deps(): 
	- (some code moved to find_deps(), see above)
	- by default --list-deps will list installed deps too, as in earlier versions 
	- sometimes pkg was listed as it's own dep, now fixed
- fixed get_pkg_name_only(), more accurate
- fixed get_deps(): fixed failure to install some already downloaded packages
- fixed pkg_entry(): can now get pkg repo entries from any repo, not only current, also doesn't need full pkg name
- fixed print_usage(): 
	`pkg --usage <option>`
	- added support for short options (-li,-pi,-ps,-ld,-le, etc)
	- added usage info for the various supported environment vars
	- added example cmds to usage output of given cmd, taken from /usr/lib/pkg/docs/examples.txt
	- added info about seeing current setting if no options given for some cmds
	- cleanup: sources files in /usr/lib/pkg/docs/usage/* all contain USAGE="", can be sourced properly
	- fixed usage info of `pkg --add-source`
	- fixed usage info of `pkg --dir2pet`, added more complete pet.specs example
- cleanup: better cleanup of tmp files in firstrun(), called by --welcome cmd
Attachments
pkg-1.9.17alpha-noarch.pet
(149.18 KiB) Downloaded 397 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

Robert123
Posts: 362
Joined: Fri 20 May 2016, 05:22
Location: Pacific

#74 Post by Robert123 »

[quote="sc0ttman"]A more long term roadmap would be:

3. Get pkg working with Woofy (my own remaster tool, so Pkg can help Woofy add/remove pkgs from ISO, with dep resolution)

-----------------------------------------------------------------------------------

A new version of woofy would be good.
Devuan Linux, Stardust 013 (4.31) updated [url]https://archive.org/details/Stardustpup013glibc2.10[/url]
s57(2018)barebone[url]https://sourceforge.net/projects/puppy-linux-minimal-builds/files/s57%282018%29barebones.iso/download[/url]

User avatar
KuLuSz
Posts: 31
Joined: Wed 13 Dec 2017, 18:07
Location: HuNgArY
Contact:

#75 Post by KuLuSz »

Hey guys .
Im new in this forum. i like puppy systems and i wrote script for removing packages from the system , should package manager cant do it correctly . I was see the builtin package remover, but its just deleting files without filtering needed dependencies . So this script doing this . The script not depend from the package manager . Its just read the log files which is are in /root/.packages and /root/.packages/builtin_files
I translate now to english for sharing in this forum , may anyone will look fantasy in this script . I think important question the correct package removeing.

Note : Sorry for my english , i cant truly speak it and Iam not a programmer ! :D so sorry for the script fail methods .
Attachments
remove_packages_eng.gz
Remove .gz exstension from the name, and run as script .
(6.6 KiB) Downloaded 385 times
Last edited by KuLuSz on Tue 09 Jan 2018, 14:55, edited 1 time in total.
[size=200][b]<(] [color=red]K u L u S z[/color] [)>[/b][/size]
Live contact: [url=https://discord.gg/74tBqJk]DISCORD[/url] [url=http://webchat.freenode.net/?nick=Mess2KuLuSz...&channels=puppylinux&prompt=1]IRC[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#76 Post by ally »

welcome KuLuSz

:)

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#77 Post by nilsonmorales »

KuLuSz:
did a test your script to remove packages, puppy tahr with xfce, show me this.
Image
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

User avatar
KuLuSz
Posts: 31
Joined: Wed 13 Dec 2017, 18:07
Location: HuNgArY
Contact:

#78 Post by KuLuSz »

hello ally thank you the greetings ;) :) and thank you very much the hungarian puppies uploads to archives.org :!: :P :)

hola nilson
hm , may some programming fail ... i will check this out . thanku the reply . :)
124 & 192 looks like i was do wrong exit for yafsplash , its not big problem ... :D
131 the link deleting method i dont truly know what is the problem . I was make it for more libs what uses same main file for keeping it , if have other links with same name ...
Anyway i dont get this errors in my system ... I use LX7 puppy (hungarian) , based on retro precise 11.12 or retro precise 5421 .

shell check showing this :

Code: Select all

Line 131:
     if [ ! $(cat /tmp/installed_pkg_dep_list | grep '$x' | grep -c -m 2 -v '$x[.-_]') -gt "1" ];then
            ^-- SC2046: Quote this to prevent word splitting.
                  ^-- SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
                                                     ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.
                                                                            ^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.
may need put this "$(cat /tmp/installed_pkg_dep_list | grep '$x' | grep -c -m 2 -v '$x[.-_]')" with double quote in the 131 line .
Last edited by KuLuSz on Thu 14 Dec 2017, 20:43, edited 2 times in total.
[size=200][b]<(] [color=red]K u L u S z[/color] [)>[/b][/size]
Live contact: [url=https://discord.gg/74tBqJk]DISCORD[/url] [url=http://webchat.freenode.net/?nick=Mess2KuLuSz...&channels=puppylinux&prompt=1]IRC[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#79 Post by ally »


User avatar
KuLuSz
Posts: 31
Joined: Wed 13 Dec 2017, 18:07
Location: HuNgArY
Contact:

#80 Post by KuLuSz »

yes-yes i saw it , and thank you for sharing/uploading !
[size=200][b]<(] [color=red]K u L u S z[/color] [)>[/b][/size]
Live contact: [url=https://discord.gg/74tBqJk]DISCORD[/url] [url=http://webchat.freenode.net/?nick=Mess2KuLuSz...&channels=puppylinux&prompt=1]IRC[/url]

Post Reply