It is currently Thu May 23, 2013 11:16 pm

All times are UTC




Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: ZPM command-line package manager (1.3)
PostPosted: Fri Jan 02, 2009 8:11 pm 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
BandiPat and steevols have been bugging me for quite some time to put together a CLI version of Zendo, and the last few weeks have finally afforded me sufficient time to make one. So without further introduction, here's ZPM version 1.0:

http://zendo.naquadah.org/downloads/zpm/1.0/zpm-1.0-i486-54.1.tgz

Package Tests thread

It has quite a few features so far, although if I have my way it's not over yet. Although it lacks traditional searching capabilities, it lists the packages fast enough that grep can be used to perform searches very well in a traditional unix style. Users can also view description and other details about a package by using the -d/--details switch, so you aren't limited to just package names and versions.

It also has other helpful features like upgrade functions and a verbose option, so that you can see as much or little of what is going on behind the scenes as you would like to. Local mirrors are also supported in the same way as Zendo, and they both use the same configuration file. Dotnew files are automatically prompted for whenever you install a package, so there is no periodic maintenance to remember there.

BandiPat did a huge amount of brainstorming for this project, and also made a man page, which would be a good thing to view. It has extended information about the command-line options, and filters for the list option, which is very helpful.

Feature requests and bug reports are always welcome. Feel free to drop by the #Zendo irc channel on irc.webchat.org, or email me at sparkynigel@gmail.com

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


Last edited by Sparky on Mon Apr 20, 2009 8:37 pm, edited 4 times in total.

 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Fri Jan 02, 2009 10:54 pm 
Community Packager
Community Packager
User avatar

Joined: Thu Feb 01, 2007 7:59 pm
Posts: 1795
Location: East Coast, USA
Please everyone, give it a good workout on your system. Sparky and I have tried to put it through it's paces before the release, but then everybody uses things differently, so something might have been overlooked. If something doesn't seem logical in the way it works or you continously hit a stumbling block, let Sparky know about it.

ZPM has many safety features built-in as well as reliability. Many things the user won't even notice that Sparky has done to keep you and your system safe, but there are new things!

We hope you like it enough to make it a part of your Zenwalk experience!

Regards,
BandiPat


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Tue Jan 06, 2009 10:38 pm 

Fantastic job! \!D/ \!D/ \!D/

I have now officially switched to zpm! zpm -u is so much faster than netpkg upgrade and I love the dotnew handling!!!! Thank you for your hard work!

Now some thoughts/ideas:
1. Why so few mirrors included in zendo.conf by default? I can always add more myself of course and I know you know there are more because you list them in the website, so... why?
2. Can you make the package names case insensitive? So if I do zpm fretsonfire I get the package which has been badly named by its packager with caps all over the place? :-X
3. Can we have a search option? Something like zpm -s mail should return all packages that include "mail" in the package name or description (case insensitive again). Just package names should be enough, or maybe the 1st line of slack-desc next to the package name.
4. A --remove-with-deps option maybe? So if I remove package A which depended on package B and now B is needed by nothing else, B is prompted for removal, not auto-removed (maybe except in combination with -a?).


  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Tue Jan 06, 2009 10:51 pm 
Master of the known universe
Master of the known universe
User avatar

Joined: Wed Jan 10, 2007 10:24 pm
Posts: 1341
Location: düsseldorf, germany
yes... this is a fantastic tool. i have also switched to zpm :)

thanks for the package :)

_________________
tomorrow is just like today, only happens tomorrow.


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Tue Jan 06, 2009 11:04 pm 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
gapan wrote:
1. Why so few mirrors included in zendo.conf by default? I can always add more myself of course and I know you know there are more because you list them in the website, so... why?
So many to choose from, I couldn't make up my mind so I just went with approximately 1 of each repository. I'll include some more in the next release though. If you have any favorites I'll be sure to include them.

gapan wrote:
2. Can you make the package names case insensitive? So if I do zpm fretsonfire I get the package which has been badly named by its packager with caps all over the place? :-X
Absolutely. Good point, having to figure out all the capitalization can be annoying.

gapan wrote:
3. Can we have a search option? Something like zpm -s mail should return all packages that include "mail" in the package name or description (case insensitive again). Just package names should be enough, or maybe the 1st line of slack-desc next to the package name.
Good news, this is already implemented for the next version. Using the -q/--query switch you will be able to search for package names in a non-specific way similar to zpm -l a|grep package. It's not case insensitive yet though, I will have to change that.

gapan wrote:
4. A --remove-with-deps option maybe? So if I remove package A which depended on package B and now B is needed by nothing else, B is prompted for removal, not auto-removed (maybe except in combination with -a?).
I'll work on that. It would definitely be a handy feature.


On a side note, I advise that everybody use the --verbose or -v option until the next release. The non-verbose download function is somewhat unreliable and has some other problems.

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Tue Jan 06, 2009 11:12 pm 

Sparky wrote:
So many to choose from, I couldn't make up my mind so I just went with approximately 1 of each repository. I'll include some more in the next release though. If you have any favorites I'll be sure to include them.

You can get the current list from netpkg.conf, double everything to snapshot too and you'll have everything (edit: except the enialis one is listed only in snapshot, don't know why the list in netpkg.conf is like that). And also remove the meleeweb mirror, it's hasn't been working for ages. And does zpm or zendo handle ftp? If they do you could also add this one: ftp://ftp.linuxforum.hu/mirrors/zenwalk/i486/current and snapshot respectively.


  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Wed Jan 07, 2009 12:13 am 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
I added some more mirrors to Zendo 1.4.1 since it hasn't gotten through FIFO yet, hopefully that will be better. ZPM does support ftp servers, by the way.

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Wed Jan 07, 2009 4:00 pm 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
Enilias.net is provided by me. "Current" is available and ok, I think it is just missing from netpkg.conf. It could be added to zendo.conf, no pb.

I agree with the propositions of gapan plus one :
Is it possible to use vimdiff when it is available on the system for dotnew files ? This way, it's easier to take some lines from the new config file while keeping the custom config files.


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Wed Jan 07, 2009 5:21 pm 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
JRD wrote:
Is it possible to use vimdiff when it is available on the system for dotnew files ? This way, it's easier to take some lines from the new config file while keeping the custom config files.
OK, I put this in, hopefully it will be to your liking when the next version comes out.

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Thu Jan 08, 2009 10:22 am 
Senior Zenwalker
Senior Zenwalker
User avatar

Joined: Mon Sep 11, 2006 7:39 pm
Posts: 454
Location: Lyon, France
Thanks :)


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.0)
PostPosted: Thu Jan 08, 2009 5:42 pm 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
It seems like ZPM 1.1 is ready for release! This version has a lot of changes, so don't be surprised if there are bugs, and of course please let me know.

http://zendo.naquadah.org/downloads/zpm/1.1/zpm-1.1-i486-54.1.tgz

I think I was successfully able to incorporate all of the suggestions so far, in addition to voluminous ideas and usability tweaks from BandiPat's department. Keep in mind that the -e option is very dangerous for obvious reasons. For -e to work 100% correctly it must be able to retrieve the dependencies for all installed packages from the mirror, which should be fine unless you have a habit of installing lots of software from places other than the Zenwalk repos. I put a big red warning message on it.

* Added a function to remove a package with its unneeded dependencies (--erase-with-deps/-e)
* Added a function to find which package a file comes from (--what-provides/-w)
* Made the downloader always verbose, fixes many downloading problems
* Added a (current of total) message for installation and removal procedures
* Added gzip -l to check downloaded archive integrity
* Added failure handling for package installation
* Added more mirrors to the default configuration
* Made most functions case-insensitive
* Added a function to search package names (--query/-q)
* Modified the --help screen to be more readable
* Added a vimdiff option to the dotnew file handler
* Added blacklist support to the package remover
* Made the mirror refresh automatically when running --list/-l u

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.1)
PostPosted: Thu Jan 08, 2009 6:12 pm 

Thank you!

- The -e option seems to work perfect!
- I think I found a bug! If a package is already installed, issuing zpm packagename will install it again! I think it should better state that the same package is already installed and for verification to reinstall it.


  
 
 Post subject: Re: ZPM command-line package manager (1.1)
PostPosted: Thu Jan 08, 2009 6:24 pm 
Community Packager
Community Packager
User avatar

Joined: Sun Dec 30, 2007 10:51 pm
Posts: 839
Location: Valhalla
gapan wrote:
- I think I found a bug! If a package is already installed, issuing zpm packagename will install it again! I think it should better state that the same package is already installed and for verification to reinstall it.
That was actually the intended behavior, but you are right, it should probably prompt the user so they don't spend time reinstalling packages on accident.

EDIT: I made a small mistake, so zpm -d package will fail if the package has upper-case letters in it. That's fixed now though, redownload if you like.

_________________
It is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring. --Carl Sagan


 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.1)
PostPosted: Thu Jan 08, 2009 9:36 pm 
Community Packager
Community Packager
User avatar

Joined: Thu Feb 01, 2007 7:59 pm
Posts: 1795
Location: East Coast, USA
gapan wrote:
Thank you!

- The -e option seems to work perfect!
- I think I found a bug! If a package is already installed, issuing zpm packagename will install it again! I think it should better state that the same package is already installed and for verification to reinstall it.

gapan,
This was done because so many times a fixed or rebuilt file is uploaded to the mirrors, but most users won't get it or it won't be "installed/upgraded" because the programs don't install/upgrade the same version number. Sparky has incorporated special switches in "zpm -i or zpm [package]" to eliminate that problem, so it now will in fact "upgrade" the package without causing 2 installs of the same package, I know we've all seen/done that before, thus keeping your system integrity.

I do agree that a warning might be helpful, but I'm not sure it's needed, since it's not really a problem/bug and not in danger of hurting your system. It just provides an extra convenience for the user as well maintaining system package integrity. \!D/


Last edited by BandiPat on Fri Jan 09, 2009 3:38 am, edited 1 time in total.

 Profile Send private message  
 
 Post subject: Re: ZPM command-line package manager (1.1)
PostPosted: Thu Jan 08, 2009 9:41 pm 

BandiPat wrote:
This was done because so many times a fixed or rebuilt file is uploaded to the mirrors

This should never happen and has never happened as long as I remember. The version number stays the same, the build number is always incremented.


  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 115 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: