|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
[Spoon Feed]
Take the output from make show=pkgnames, and produce a list of packages which are used as input to pkg_add. Here is one possible method: $ cd /usr/ports/www/gnome $ pkg_add `make show=pkgname | awk '{if(NF==1) print $1}'` [/Spoon Feed] Note: any packages marked broken will obviously not be included in available packages. Rather than routing the output from the "make show" directly into pkg_add, you may wish to place it in a file that you can edit. Last edited by jggimi; 5th November 2008 at 03:06 PM. Reason: Additonal notes |
|
||||
I think jggimi's method is more complete than the one I'm about to propose.
Code:
#pkg_info -Q gnome
__________________
Network Firefighter |
|
|||
Quote:
Thus, you can generate your own list by writing a simple shell or Perl script which will isolate the package name from the command previously provided by jggimi: Code:
#!/usr/bin/perl foreach (`make show=pkgname`) { next if $_ eq "\n"; s!^.*/!!; print; } |
|
||||
Quote:
Code:
pkg_add -rv `make show=pkgname | awk '{if(NF==1) print $1}'` Code:
/usr/sbin/pkg_add: Missing pkgname Usage: pkg_add [-acIinqruvx] [-A arch] [-B pkg-destdir] [-F keywords] [-L localbase] [-P type] [-Q quick-destdir] pkg-name [...] |
|
|||
Quote:
$ make show=pkgname ...where the output is: Code:
===> x11/gnome/alacarte ===> x11/gnome/applets2 ===> x11/gnome/at-spi ===> x11/gnome/audio ===> x11/gnome/backgrounds ===> x11/gnome/baker ===> x11/gnome/build ... As has been mentioned to you before, you need to understand what the commands used do. If you don't understand, learn. This is what will make your efforts effective. The Perl script I supplied strips out everything except for the name of the package. Don't only use it, but find an online tutorial to explain what it does. Read the manpage to perl(1) too. Learn. |
|
||||
NEVER blindly type something in you read in a "HowTo", in a FAQ, or from here.
You should always know what a command you type will do ... and why. Quote:
show=PKGNAMEnot show=pkgname Quote:
|
|
|||
You appear to be missing the point. The list jggimi gave you is the list of all packages for GNOME. The list just happens to be created from information found in the ports tree (which is the definitive source for this information...). If for some reason you don't want to install the ports tree for this task, consider installing it on a USB drive. The ports tree itself is ~250MB in size. If you don't want to install the ports tree at all, I'm afraid that no one can/will help you.
|
|
||||
thanks all guys
After one day I install Gnome with Code:
pkg_add -rv gnome-session good thing I see I can install many package like k3b and other thing in OpenBSD 4.4 , before I use OpenBSD 4.2 and I can not many package like K3B |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
error code 1 whie make install gnome | mtm0 | NetBSD General | 3 | 4th September 2009 11:56 AM |
Links for softwares after install (kde, gnome, firefox) | ahlsner | NetBSD General | 14 | 12th August 2009 10:46 PM |
New User - Ports Install and GNOME Pkg problems | IronForge | OpenBSD Packages and Ports | 9 | 14th July 2009 08:34 PM |
/usr is full (OpenBSD 4.5 current) | valorisa | OpenBSD Packages and Ports | 7 | 10th June 2009 01:28 PM |
Gnome issues in OpenBSD 4.2 | Shredder | OpenBSD General | 61 | 27th May 2008 07:34 AM |