aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/info/main.c
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-311-295/+0
| | | | Notes: svn path=/head/; revision=257444
* Warn users when using pkg tools if it looks like theyEitan Adler2012-10-221-0/+1
| | | | | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241830
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-171-12/+2
| | | | | | | Discussed with: erwin, brooks, bapt Notes: svn path=/head/; revision=222035
* - Take libinstall.a out of pkg_install and make it a proper shared library.Florent Thoumie2010-04-231-2/+12
| | | | | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now. Notes: svn path=/head/; revision=207113
* Add missing `void' keywords.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201226
* Fix segfault when giving invalid long option to pkg_info.Jilles Tjoelker2009-06-011-0/+1
| | | | | | | | | | PR: bin/133473 Submitted by: Rafal Grodzinski Approved by: ed (mentor) MFC after: 1 week Notes: svn path=/head/; revision=193273
* - Add long options to pkg_install.Florent Thoumie2008-05-301-5/+23
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* Fix pkg_info when specifying a remote package.Florent Thoumie2008-04-161-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=178246
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* Allow variable amounts of verbosity.David E. O'Brien2006-06-121-1/+1
| | | | Notes: svn path=/head/; revision=159554
* Add -K option to pkg_add and pkg_info.Florent Thoumie2006-01-091-2/+7
| | | | | | | | | | | | This option saves packages to PKGDIR (if defined or current directory by default) as they are downloaded. Silent a warning when -n is used and package has a +DISPLAY file. Approved by: krion MFC after: 1 week Notes: svn path=/head/; revision=154145
* Fix pkg_info(1) and pkg_delete(1) to handle properly packages whichKirill Ponomarev2005-10-101-1/+1
| | | | | | | | | | | names start with a digit. PR: bin/76858 Submitted by: Matthew D. Fuller <fullermd@over-yonder dot net> MFC after: 3 days Notes: svn path=/head/; revision=151188
* Add a -q flag to pkg_version. It suppresses the output of <,=,>.David E. O'Brien2004-10-181-1/+0
| | | | | | | This makes it possible to "portupgrade `pkg_version -q -l '<'`". Notes: svn path=/head/; revision=136643
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵Oliver Eikemeier2004-06-291-3/+7
| | | | | | | | | | | | | | | | | | | change)) - pkg_info: new flag -j (show the requirements script) - pkg_info: fix verbose output when used on packages - better handling of corrupt entries in /var/db/pkg - differ between corrupt entires and packages not installed - various small fixes PR: 56989, 57016, 57029, 26468 Notes: svn path=/head/; revision=131280
* - match package version numbers with relational operatorsOliver Eikemeier2004-06-291-3/+11
| | | | | | | | | | | | | | | | | - use glob patterns when matching packages by origin - csh-style {...} choices in glob matching - pkg_info: new flag -E (list matching package names only) - pkg_version: new flag -T (test if a given name matches a pattern) - new flag -X (interpret pattern as an extended regular expression) PR: 56961 Notes: svn path=/head/; revision=131275
* Synopsis fixes:Colin Percival2004-03-301-5/+5
| | | | | | | | | | | | | * `pkg_info -flags' needs either `-a' or a package name. [1] * Add -Q option to manual page. * Update `usage:' to match the manual page. PR: misc/64786 [1] Reviewed by: ru MFC after: 3 days Notes: svn path=/head/; revision=127641
* - Add the 'b' option which causes BLOCKSIZE to be hornored whenMatthew N. Dodd2003-03-251-1/+6
| | | | | | | | the 'q' or 'Q' options are present. - Document BLOCKSIZE. Notes: svn path=/head/; revision=112579
* Implement the 'Q' option which is like 'q' (quiet output) exceptMatthew N. Dodd2003-03-251-1/+7
| | | | | | | | | | | that it prefaces the output with the package name. This is useful for things like this: # pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10 Notes: svn path=/head/; revision=112572
* Introduce notion of the package tools revision and allow to wrap all toolsMaxim Sobolev2002-09-091-1/+12
| | | | | | | | | | | | | | | | | | | | | included into pkg_install according to the content of /var/db/pkg_install.conf file, which specifies version and alternative location of the tools. Format of the said file is very simple: one line which specifies revision of the alternative version of the tools and their location separated by space, i.e.: 20030102 /usr/local/sbin This would allow bsd.port.mk to install and use up to date version of tools on older system from ports. Also add new `-P' flag to pkg_info, which causes it to report currently installed version of package tools. Discussed with: will Notes: svn path=/head/; revision=103149
* Update usage() and manpage to match reality (add -O into usage and adjustMaxim Sobolev2002-05-051-2/+4
| | | | | | | | | both to make clear that -W and -O are stand-alone options). MFC after: 6 days Notes: svn path=/head/; revision=96067
* Add ability to query installed packages based on origin.Maxim Sobolev2002-05-041-2/+9
| | | | Notes: svn path=/head/; revision=96030
* Make pkg_info working again when argument is a file not in the currentMaxim Sobolev2002-05-021-2/+5
| | | | | | | | | | | directory. PR: 37571 Submitted by: Dirk Meyer <dirk.meyer@dinoex.sub.org> MFC after: 1 week Notes: svn path=/head/; revision=95934
* Fix SCM ID's.David E. O'Brien2002-04-011-5/+3
| | | | Notes: svn path=/head/; revision=93520
* Fix "off by 1" error introduced in the previous commit by replacing strncpy(3)Maxim Sobolev2001-10-161-1/+1
| | | | | | | | | with strlcpy(3). MFC after: 2 weeks Notes: svn path=/head/; revision=85019
* Use strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.Maxim Sobolev2001-10-151-1/+1
| | | | | | | | Prompted by: dd MFC after: 2 weeks Notes: svn path=/head/; revision=85002
* - Introduce a notion of `packing list format version'. This allows makingMaxim Sobolev2001-10-101-2/+6
| | | | | | | | | | | | | | | | | | | | | non-backward compatible changes in the format of packing list and handle them gracefully; - fix a longstanding issue with symlinks handling. Instead of recording checksum for the file symlink points to, record checksum for the value returned by readlink(2). For backward compatibility increase packing list format minor version number and provide a fallback to a previous behaviour, if package in question was created with older version of pkg_* tools; Submitted by: Alec Wolman <wolman@cs.washington.edu>, sobomax - don't record MD5 checksum for device nodes, fifo's and other non-regular files. Submitted by: nbm MFC in: 2 weeks Notes: svn path=/head/; revision=84750
* WARNS=2 cleanup.Maxim Sobolev2001-10-101-1/+1
| | | | | | | | Tested on: i386, alpha MFC after: 2 weeks Notes: svn path=/head/; revision=84745
* - Add which(1)-like functionality into pkg_info;Maxim Sobolev2001-03-231-4/+25
| | | | | | | | | | | | - fix a harmless bug in match_installed() function introduced in my last commit; - uniformely reorder includes across files. Submitted by: Garrett Rooney <rooneg@electricjellyfish.net> Not objected by: jkh, -ports Notes: svn path=/head/; revision=74699
* Add two missed modifiers into usage message (`-G' and `-x').Maxim Sobolev2001-02-241-1/+1
| | | | Notes: svn path=/head/; revision=72978
* - By default treat supplied arguments as a shell globs to be matched againstMaxim Sobolev2001-02-081-19/+31
| | | | | | | | | | | | | | | | | | | | | | names of installed packages; - add new `-G' option to disable glob matching and revert to previous behaviour (I have no idea why this could be necessary, though); - add a new `-x' option, which instructs pkg_info(1) to treat supplied arguments as a regular expressions. For example: $ pkg_info foo\* - displays information about all packages whose names start from foo $ pkg_info -G foo\*-1.1 - displays information about package named "foo*-1.1" $ pkg_info -x ^foo.\* - displays information about all packages whose names start from foo Original idea submitted by: Edwin Groothuis <mavetju@chello.nl> (bin/24695) Reviewed by: jkh, roam Approved by: jkh Notes: svn path=/head/; revision=72174
* Add a -g flag for verifying an installed package against its recordedJordan K. Hubbard2001-02-031-1/+5
| | | | | | | | | | | checksums (to see if it's been modified post-installation). Naturally, this mechanism is only as secure as the contents of /var/db/pkg if you're using it for auditing purposes. Submitted by: Roman Shterenzon <roman@xpert.com> Notes: svn path=/head/; revision=71965
* - Add missed `-s' option into usage printout;Maxim Sobolev2000-12-051-1/+1
| | | | | | | - sort options alphabetically. Notes: svn path=/head/; revision=69616
* Add "-o" option to pkg_create(1) and pkg_info(1). This option intended to recordMaxim Sobolev2000-10-231-2/+6
| | | | | | | | | | | a path of the port from which package has been created within FreeBSD Ports Collection and will be used to improve pkg_version(1) and similar tools. Reviewed by: ports@FreeBSD.org, jkh Approved by: jkh Notes: svn path=/head/; revision=67454
* Cause fatal error messages to be a little more helpful to the programmerJordan K. Hubbard2000-10-221-1/+1
| | | | | | | | | | | | concerning where they're taking place. Switch from [r]index() to str[r]chr() functions, which are more ISO compliant. Prompted by: Edward Welbourne <eddy@vortigen.demon.co.uk> Notes: svn path=/head/; revision=67429
* New option "-s" to query size of the installed package(s).Maxim Sobolev2000-07-071-1/+5
| | | | | | | | | | PR: 19445 Submitted by: sobomax Reviewed by: knu Approved by: silence Notes: svn path=/head/; revision=62775
* Avoid infinite loops when given a package name like 'm4-1.1/'.Steve Price2000-05-141-24/+14
| | | | | | | Approved by: jkh Notes: svn path=/head/; revision=60563
* Fix a bug in previous commit where pkg_{delete,info} foo-1.0/ would segfault.Dan Moschuk2000-01-181-2/+4
| | | | | | | Noticed first by: kris Notes: svn path=/head/; revision=56211
* Teach pkg_delete and pkg_info how to deal with full pathnamesDan Moschuk2000-01-151-1/+23
| | | | | | | | | (/var/db/pkg/foo-1.0, instead of just foo-1.0). Submitted by: Matthew D. Fuller <fullermd@futuresouth.com> Notes: svn path=/head/; revision=56001
* Include -f and -t options to SYNOPSYS section (manpage) and usage informationAlexey Zelkin2000-01-071-8/+8
| | | | | | | | | | (main.c) PR: bin/5410 Submitted by: Frank Volf <volf@oasis.IAEhv.nl> Notes: svn path=/head/; revision=55567
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* '?' shouldn't be in the usage string. Unknown characters are alreadyWarner Losh1999-06-241-2/+2
| | | | | | | converted to '?'. Notes: svn path=/head/; revision=48170
* If we are going to have a case for '?' then we should define it in Options.Bill Fumerola1999-06-231-2/+2
| | | | | | | Submitted by: Ben Olson <bseth@chc-chimes.com> Notes: svn path=/head/; revision=48143
* If pkg_info is run with no args, default to "-aI".Jordan K. Hubbard1999-04-271-2/+7
| | | | Notes: svn path=/head/; revision=46105
* "This is the add^H^H^Hinfo module."Tim Vanderhoek1997-12-261-2/+2
| | | | | | | | | | Pedantic comment fix. PR: bin/5188 Submitted by: Alex [3]garbanzo@hooked.net Notes: svn path=/head/; revision=31997
* Use err(3). Cosmetics in usage string and man page.Philippe Charnier1997-10-081-35/+13
| | | | Notes: svn path=/head/; revision=30221
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Bring forward my changes from 2.1Jordan K. Hubbard1995-10-251-3/+3
| | | | Notes: svn path=/head/; revision=11780