aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/delete
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-315-950/+0
| | | | Notes: svn path=/head/; revision=257444
* Provide an option to users to shoot themselves in the foot.Eitan Adler2012-11-261-1/+5
| | | | | | | | | Reviewed by: bapt Approved by: cperciva MFC after: 1 month Notes: svn path=/head/; revision=243554
* 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-304-4/+4
| | | | Notes: svn path=/head/; revision=228990
* Print the package name on deletion errors.Sergey Kandaurov2011-09-161-2/+2
| | | | | | | | | | | | | It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD Notes: svn path=/head/; revision=225610
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-173-4/+7
| | | | | | | 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-233-7/+4
| | | | | | | | | | | | | | - 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
* Various fixes.Florent Thoumie2010-04-011-6/+14
| | | | | | | | | | | | | | | | | | | - Replace hardcoded INDEX version. [1] - Fix a buffer overlap. [2] - Remove empty package when fetching fails and -K is used. [3] - Remove useless chmod2() after mkdtemp(3). [4] - Replace mkdir(1) call with mkdir(2). [5] - Get rid of some vsystem() calls. - Switch from lstat(2) to open(2) in fexists(). - Try rename(2) in move_file() first. - Bump PKG_INSTALL_VERSION to 20100401. PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5] Notes: svn path=/head/; revision=206043
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | Notes: svn path=/head/; revision=201390
* Add missing `void' keywords.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201226
* - Add long options to pkg_install.Florent Thoumie2008-05-302-17/+35
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* - Restore functionality broken in previous commit; we need to be able to reportPav Lucistnik2008-05-031-2/+5
| | | | | | | | | | multiple installed packages with the same PKGORIGIN. Reported by: marcus MFC after: 1 month Notes: svn path=/head/; revision=178753
* Optimize package registration/deregistration. Previously, when looking up thePav Lucistnik2008-04-111-10/+26
| | | | | | | | | | | | | | package name for the origin of a dependency, all entries in /var/db/pkg were traversed for each dependency of added/removed package. Now, gather all the origins first, then do the lookup in a single pass over /var/db/pkg. This should provide a major speedup for packages with hundreds of dependencies. Submitted by: rdivacky (earlier version) MFC after: 1 month Notes: svn path=/head/; revision=178103
* Backout previous commit, since it's done without maintainersKirill Ponomarev2007-12-091-1/+0
| | | | | | | | | | approval. These changes were approved by adding it as port to ports/ tree, but not for src/. I talked to PR submitter and miwi@ some days ago and explained the reasons for it, the both were agree to add it to ports/ only. Notes: svn path=/head/; revision=174475
* Add the 'pkg_search' script.David E. O'Brien2007-12-091-0/+1
| | | | | | | | | This makes it easier to figure what packages you want to install. Submitted by: Matthias Schmidt <schmidtm @ mathematik . uni-marburg . de> Notes: svn path=/head/; revision=174472
* Fix segfault while running with -a option and deinstalling brokenKirill Ponomarev2007-11-101-1/+1
| | | | | | | | | | | packages with incorrect plists. PR: bin/115327 Submitted by: Michael Zhilin <mizhka@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=173533
* 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
* 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
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.Ruslan Ermilov2004-08-121-1/+1
| | | | Notes: svn path=/head/; revision=133596
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-10/+20
| | | | Notes: svn path=/head/; revision=131500
* - pkg_add spawns itself as argv[0] when installing dependent packages, toOliver Eikemeier2004-06-293-5/+5
| | | | | | | | | | | | | | | | | | | | | enable the use as a port on older systems - use absolute paths in all calls to external programs, to account for strange PATH settings - use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on FreeBSD 4.x as a port. - conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the pkg_install tools can be kept in sync on 4.x and 5.x - Bump PKG_INSTALL_VERSION Reviewed by: portmgr (bento run) MFC after: 4 weeks Notes: svn path=/head/; revision=131285
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵Oliver Eikemeier2004-06-291-27/+43
| | | | | | | | | | | | | | | | | | | 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-293-5/+17
| | | | | | | | | | | | | | | | | - 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
* - Properly build both crypto and non-crypto versions of theRuslan Ermilov2004-01-171-5/+0
| | | | | | | | | | package management tools. - Drop redundant dependency of pkg_create(1) and pkg_delete(1) on crypto libraries now that they do not link with libfetch. Notes: svn path=/head/; revision=124633
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157
* Fix a long-standing bug where if the package being deleted had noDag-Erling Smørgrav2003-02-252-14/+12
| | | | | | | | | | | | | | | | | | | post-deinstall script, the variable intended to hold the name of that script would be used uninitialized. In some cases, fexists() would succeed, causing pkg_delete to try to chmod +x it, then execute it, resulting in bizarre error messages such as: .//: Permission denied This bug would normally only occur when multiple packages were specified on the command line; otherwise post_script would be located in a previously unused part of the stack, and implicitly (but quite accidentally) initialized to all-zeros. MFC after: 3 days Notes: svn path=/head/; revision=111486
* Break fileGetURL() out into its own file so that pkg_install/lib consumersDavid E. O'Brien2002-11-061-2/+2
| | | | | | | pkg_{create,delete} don't need to needlessly link with libfetch. Notes: svn path=/head/; revision=106491
* Reorder libraries to fix static linking (libssl depends on libcrypto, soDag-Erling Smørgrav2002-06-121-2/+2
| | | | | | | | | it must come before libcrypto in LDADD) Reviewed by: bde Notes: svn path=/head/; revision=98143
* libfetch now depends on libcrypto and libssl.Ruslan Ermilov2002-06-061-0/+5
| | | | Notes: svn path=/head/; revision=97930
* - Make use of DEPOROGINs (if there are any) when installing package;Maxim Sobolev2002-05-141-16/+40
| | | | | | | | | | - fix few bogosities here and there; - move some common routines into the library. MFC after: 2 weeks Notes: svn path=/head/; revision=96613
* replace __FUNCTION__ with standardized __func__.Alfred Perlstein2002-05-111-6/+6
| | | | | | | Requested by: jhb Notes: svn path=/head/; revision=96392
* fix build:Alfred Perlstein2002-05-111-4/+7
| | | | | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string" Notes: svn path=/head/; revision=96388
* Use `The .Nm utility'Philippe Charnier2002-04-201-0/+2
| | | | Notes: svn path=/head/; revision=95127
* Fix SCM ID's.David E. O'Brien2002-04-012-10/+6
| | | | Notes: svn path=/head/; revision=93520
* WARNS=2 cleanup.Maxim Sobolev2001-10-102-1/+3
| | | | | | | | Tested on: i386, alpha MFC after: 2 weeks Notes: svn path=/head/; revision=84745
* Various fixes and improvements:Maxim Sobolev2001-09-194-68/+99
| | | | | | | | | | | | | | | - fix harmless compiler's warnings (unused variables and missed prototype); - before refusing to delete package because "there are packages installed that require this package" check that packages in question is actually installed; - add new `-r' option to pkg_delete(8), which instructs it to delete not only packages specified at command line, but all packages that depend on specified packages as well. MFC after: 2 weeks Notes: svn path=/head/; revision=83663
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵Maxim Sobolev2001-08-022-6/+3
| | | | | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month Notes: svn path=/head/; revision=81049
* Usability tweak:Maxim Sobolev2001-08-021-9/+9
| | | | | | | | | | | | Use '' quotes instead of `' to delimit names of files and packages in warning and error messages, because it is easier to cut-n-paste name in question that way (single click) without confusing the shell. And yes, I know that it is less eye-candy... MFC after: 1 month Notes: svn path=/head/; revision=81046
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-4/+4
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-8/+8
| | | | Notes: svn path=/head/; revision=79755
* Style policy: reformat multiline comments to conform to style(9).Maxim Sobolev2001-05-171-3/+6
| | | | Notes: svn path=/head/; revision=76739
* When creating a package sort dependencies in such a way that if dependencyMaxim Sobolev2001-03-151-68/+3
| | | | | | | | | | | | | | | | | | | | | A depends on dependency B then dependency A will be in all cases listed before B, so ``pkg_add -r'' will fetch/install packages in the correct order. Previously dependencies were sorted just by its names, which is why ``pkg_add -r'' never actually worked properly. To be usefull, hovewer, this fix requires that all packages have been rebuilt, so it will take some time until users would be able to feel posititive improvements. For the same reasons it is desirable to propagate these changes to the 4-stable package building cluster *before* 4.3 ports freeze, so packages for 4.3-RELEASE would be properly prepared. Prompted by: kris Insanely appreciated by: obrien Silently approved by: jkh, -ports Notes: svn path=/head/; revision=74295
* When called with the "-n" command line argument, pkg_deleteOllivier Robert2001-03-041-5/+4
| | | | | | | | | | | | | | | | | | | is supposed to inform the user of all steps it would take. The current code does not issue any messages regarding actions that would be performed by delete_package (removing files and executing @unexec commands), because when the Fake variable is 1, delete_package (which itself respects Fake and prints messages rather than taking action when it is 1) is not called at all. Fix this. PR: bin/24971 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Notes: svn path=/head/; revision=73525
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.Ruslan Ermilov2001-02-281-4/+4
| | | | Notes: svn path=/head/; revision=73233
* - Merge recently added into pkg_info(1) regex/glob matching functionality intoMaxim Sobolev2001-02-274-18/+104
| | | | | | | | | | | | pkg_delete(1) as well; - add a new `-a' option for pkg_delete(1) to delete all installed packages; - add a new `-i' option for pkg_delete(1) to request simple rm(1)-like interactive confirmation before attempting to delete each package. Silently approved by: jkh, -ports Notes: svn path=/head/; revision=73134
* Fix a typo, that in some cases may lead to incorrect packages reordering.Maxim Sobolev2001-02-211-1/+1
| | | | Notes: svn path=/head/; revision=72782
* Use the more logical author syntax from pkg_version and quoteJordan K. Hubbard2001-02-201-3/+2
| | | | | | | email addresses properly. Notes: svn path=/head/; revision=72776
* Improve pkg_delete(1) behaviour when deleting several packages at once.Maxim Sobolev2001-02-191-3/+74
| | | | | | | | | | | | | Instead of trying to delete packages in the same order as they were specified in the command line, reorder deletion in such a way that if package A depends on package B then package A will be deleted before B no matter in which order they were specified in the command line. Reviewed by: jkh, will Approved by: jkh Notes: svn path=/head/; revision=72694