DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th November 2010
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default pkg_add_it - new version

Hello,

It's been a while since I haven't posted anything in these forums, but now I'm back

I would like to inform you that I did some work on a tool I previously started, here on these forums - pkg_add_it, a tool for interactive installation of packages. [1]

Now, I've managed to do some work on the tool and did a complete rewrite of it, so now it has much more options and improved code.. so the tool in general can do these things:

- displays dependencies in tree view (something that I think some people might find useful)
- displays what is going to be installed
- show categories and number of packages in them
- search by categories
- regex support
- and more...

Still there's some things that still need improvement, but at least it's a start

I would appreciate if you could install it and test it, so you can provide some feedback on what can still be done and improved.

There are some screenshots available as well [2].

In order to install it, just follow these steps:

Code:
# git clone git://git.unix-heaven.org/public/pkg_add_it
# cd pkg_add_it && make install clean
[1] http://www.daemonforums.org/showthread.php?t=2000
[2] http://www.unix-heaven.org/pkg_add_it-new-gfx/
[3] www.unix-heaven.org/index.php?page=pkg_add_it
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #2   (View Single Post)  
Old 12th November 2010
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Hello,

Just an update..

I spent some time today working on the algorithm for finding package
dependencies from INDEX and
managed to improve it a lot, so now dependencies are being found in
times faster than before (!!)

The previous algorithm was recursing over the INDEX file in order to
find all dependencies to build a tree-view of
the package dependencies, and now only 1 iteration is needed to
accomplish this

Now, only if there was a libpkg ready, then pkg_add_it(1) could be
transformed into a standalone install tool, which does not need
pkg_add(1) for it's job

Regards,
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #3   (View Single Post)  
Old 13th November 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

I would be happy to test, but sadly lack a FreeBSD machine :'(
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #4   (View Single Post)  
Old 13th November 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

@DNAeon

Am I doing something wrong here?

Code:
# pkg_add_it -r fluxbox
# pkg_add_it: Error in config_read_file() from config.c at line 179: No such file or directory
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #5   (View Single Post)  
Old 13th November 2010
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by vermaden View Post
@DNAeon

Am I doing something wrong here?

Code:
# pkg_add_it -r fluxbox
# pkg_add_it: Error in config_read_file() from config.c at line 179: No such file or directory
Hello mate

pkg_add_it uses a configuration file, which defaults to /usr/local/etc/pkg_add_it.conf.

Please use the -f option to specify the configuration file that you've cloned with the code of the program. This file will be installed by the port, that's why it is not being installed when you compile the program from the repo.

Another thing that I'm working on is to have more user-friendly error messages

The manual pages will be updated probably today as well, so I hope by the end of today I'll be able to submit a PR.

Regards,
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
  #6   (View Single Post)  
Old 14th November 2010
DNAeon DNAeon is offline
Shell Scout
 
Join Date: Sep 2008
Location: Bulgaria
Posts: 138
Thanked 6 Times in 6 Posts
Default

PR was submitted, hopefully it will get soon to the Ports Tree

http://www.freebsd.org/cgi/query-pr.cgi?pr=152222
__________________
"I never think of the future. It comes soon enough." - A.E

Useful links: FreeBSD Handbook | FreeBSD Developer's Handbook | The Porter's Handbook | PF User's Guide | unix-heaven.org
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ports Version associated with FreeBSD version rtwingfield FreeBSD Ports and Packages 4 7th June 2010 11:00 PM
Upgrade from version 3.7 Novice OpenBSD Installation and Upgrading 8 5th January 2010 06:09 PM
kernel version 0?? Stellar OpenBSD General 5 30th August 2009 11:07 PM
My version of pkg_add :) DNAeon FreeBSD Ports and Packages 26 15th October 2008 06:58 AM
How I can have two version of zsh mfaridi FreeBSD Ports and Packages 7 15th May 2008 05:56 PM


All times are GMT. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick