Puppy Package Manager (modified) v3.0

Core libraries and systems
Message
Author
mistfire
Posts: 1411
Joined: Wed 05 Nov 2008, 00:35
Location: PH

Puppy Package Manager (modified) v3.0

#1 Post by mistfire »

This is a modified Puppy Package Manager. It implements organized .packages directory structure and also with full working Puppy Remaster Script where is .files of installed package became builtin files list upon remastering the puppy.

PPM mod .package directory structure:
.packages/package-files - where .files of installed package stored
.packages/database - where package repo lists is saved
.packages/remove-script - where uninstall script of installed package is saved
.packages/repo - where the package database is saved
.packages/package-info - where the fetched package information is saved

Changes:
* Adding a new repo is much easier than before. Instead of hard coded repo list in DISTRO_PET_REPOS and DISTRO_COMPAT_REPOS which consists of very long string (It is hard to manage). The repo information is implemented by list (csv). The files are located in .packages/database

PET_REPO_LIST - PET Repo list
PET_DB_REPO - Repo list for package database
PET_ORDER_LIST - Priority list for searching packages
COMPAT_REPO_LIST - Compatible distro repo list
COMPAT_DB_REPO - Repo list for Compatible distro package database

When PPM starts it will synchonize the contents of these files in DISTRO_PET_REPOS and DISTRO_COMPAT_REPOS for compatibility. It can also done by typing the following command in terminal.

Code: Select all

sync-repo
For using woof run this command first.

* Full PUP package support. It allows to install old Puppy 1.x and 2.x package without conversion needed (by redirecting to newly improved dotpuprox2 handler). The installed pup package can be uninstall using PPM (Application performance from old puppy is not guaranteed but 60-90% applications works fine.). Just associate (or Open with) pup packages to petget in order to work.

* Ability to rebuild broken symlinks upon uninstallation of packages
* Ability to update package entries
* Install almost any linux package formats:
  • Slackware (*.txz,*.tgz)
    Debian (*.deb)
    Red Hat (*.rpm)
    Arch Linux (*.pkg.tar.xz,*.pkg.tar.gz)
    Slitaz (*.tazpkg)
    Tiny Core (*.tcz,*.tce,*.tcel,*.tcem)
    Pardus (*.pisi)
    Alpine Linux (*.apk)
    Slax (*.sb)
    OpenWRT (*.ipk)
    0linux (*.spack)
    Void linux (*.xbps)
    Damn Small Linux (*.dsl)
    Puppyrus (*.pfs)
    Nutyx (*.cards.tar.xz)
    Solus (*.eopkg)
    Stampede (*.slp)
    Porteus (*.xzm,*.lzm)
Download:https://drive.google.com/file/d/1bAhlZJ ... sp=sharing

Merge this concept on woof-CE? That will be no problem for me. You can take this project and merge it on woof
Last edited by mistfire on Wed 24 Apr 2019, 11:07, edited 40 times in total.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#2 Post by Sailor Enceladus »

Seems to work for me so far. I installed pipe-panic from the ppm in Slacko 6.3 and it went under package-files, then was able to uninstall it.

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

#3 Post by mistfire »

@Sailor Enceladus that was nice. It is already integrated in x-slacko slim. I hope it works on other pups.

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#4 Post by Sailor Enceladus »

Here's a screenshot to show what .packages looks like after with your mod
Attachments
Screenshot.png
(41.69 KiB) Downloaded 2312 times

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

#5 Post by mistfire »

It seems work nice. However you must move ppm-mod .files to package-files folder and .remove files to remove-script folder. In case of uninstalling the modified PPM

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

Have you submitted these changes to Woof-CE?

If you rally want this to get into Puppy, the code is there in Woof-CE.
https://github.com/puppylinux-woof-CE/woof-CE

There is also this:
woof-CE patch generator!
http://www.murga-linux.com/puppy/viewtopic.php?t=98740
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

jlst

#7 Post by jlst »

I can certainly merge this into the rationalise branch ( https://github.com/puppylinux-woof-CE/w ... ationalise )

I also had plans for the ppm/petget, but i'm busy doing many other things. So if mistfire wants to merge his work, i'll be listening

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

#8 Post by mistfire »

Hello @jlst and @bigpup im revising PPM in woof-ce. I'm newbie on git, Is there any find replace feature in git text editor. Or upload the whole petget script that I revised?

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

#9 Post by mistfire »

New PPM mod version released

Changes:
* Adding a new repo is much easier than before. Instead of hard coded repo list in DISTRO_PET_REPOS and DISTRO_COMPAT_REPOS which consists of very long string (It is hard to manage). The repo information is implemented by list (csv). The files are located in .packages/database

PET_REPO_LIST - PET Repo list
PET_DB_REPO - Repo list for package database
PET_ORDER_LIST - Priority list for searching packages
COMPAT_REPO_LIST - Compatible distro repo list
COMPAT_DB_REPO - Repo list for Compatible distro package database

When PPM starts it will synchonize the contents of these files in DISTRO_PET_REPOS and DISTRO_COMPAT_REPOS for compatibility. It can be also done by typing the following command in terminal.

Code: Select all

sync-repo
For using woof run this command first.

* Automatic download is now fixed. PPM-mod will browse all the repo in the list for package existence. If the selected package failed to find in a repo entry it will jump to the next entry until it reach the last entry in the repo list

* Update package database is also fixed.
Last edited by mistfire on Sat 23 Jul 2016, 22:08, edited 9 times in total.

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

#10 Post by mistfire »

jlst wrote:I can certainly merge this into the rationalise branch ( https://github.com/puppylinux-woof-CE/w ... ationalise )

I also had plans for the ppm/petget, but i'm busy doing many other things. So if mistfire wants to merge his work, i'll be listening
@jlst I succefully submitted my code for PPM in woof-ce. You may review the code that I submitted.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#11 Post by bigpup »

I have never submitted stuff to Woof-CE.
As I understand:
Go the the Woof-CE gitHub web page.
Sign up or sign in
Select new pull request.
Submit your code.
The team of people that control the code in Woof-CE will review it.
They may offer more changes, ideas, discussion, or just accept it.

One of the main Woof-CE support team members is mavrothal.
He was the one that did the last big changes to PPM.
https://github.com/puppylinux-woof-CE/woof-CE

Here is an example of a pull request:
https://github.com/puppylinux-woof-CE/w ... issues/730
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#12 Post by bigpup »

Thanks for the code and the help to make Puppy better!!
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#13 Post by rockedge »

This is fantastic! Adding repos is very easy now.
@mistfire Thanks for the work!

jlst

#14 Post by jlst »

Don't worry, learning how to use git takes time and if you're not gonna use it often.. it results in a waste of time.

Just continue developing your project, and the more people test it the better.. less work for me.

Meanwhile i'll give the code a look, and i'll give you some suggestions... in the following days. I'm currently very busy with the initrd stuff and testing the code i write. It will be merged eventually....

User avatar
rockedge
Posts: 1864
Joined: Wed 11 Apr 2012, 13:32
Location: Connecticut, United States
Contact:

#15 Post by rockedge »

I am getting this error while updating the repos:

Code: Select all

mv: cannot stat '/root/.packages/Packages-*': No such file or directory
on a fresh install of Tahr 6.0.5 running the PPM MOD 0.0.2. And the update fails.

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

#16 Post by mistfire »

rockedge wrote:I am getting this error while updating the repos:

Code: Select all

mv: cannot stat '/root/.packages/Packages-*': No such file or directory
on a fresh install of Tahr 6.0.5 running the PPM MOD 0.0.2. And the update fails.
Thanks @rockedge the error is now fixed on PPM MOD 0.0.3

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#17 Post by bigpup »

Xenialpup 7.0.1

After installing PPM mod 0.0.3

I get this when updating data base.
See image:
This is a report on the last time the '0setup' script was run.
Date and time '0setup' last run: Sun Jul 24 07:53:25 EDT 2016
Compatible-distro and release-name: ubuntu, xenial
Mostly only errors get logged, so the less seen below, the better.
Log of last run of '0setup':


Failed to download db file:
http://archive.ubuntu.com/ubuntu/dists/ ... ackages.xz
...exited from 0setup script.
This could just be a bug in Xenialpup 7.0.1, but PPM is going to have to work in this version of one of the latest Puppies.
Attachments
capture9295.jpg
(11.47 KiB) Downloaded 697 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

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

#18 Post by mistfire »

@bigpup we have the same experience I tried also PPM mod on pristine Tahr pup. It is also failed to download package database. But it works fine on x-slacko slim

I try that package database to access that URL but 404 not found

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#19 Post by bigpup »

I wonder if Ubuntu moved the repository location :idea:

I did find this:
http://archive.ubuntu.com/ubuntu/dists/xenial/

So maybe the repository web links need changed in Xenialpup 7.0.1 PPM. :idea:

Note:
DID not INSTALL your pet PPM mod 0.0.3
I tried the PPM in Tahrpup 6.0.5 that has all Tahrpup updates to Tahrpup 6.0.5.
Updated data base OK :?: :idea:
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

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

#20 Post by mistfire »

PPM-mod 0.0.4 is released.

* Problems dead links during package database update is fixed
* Improvements on GUI.

Post Reply