DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default pkg_delete -a excluding some package

Hi !

Is is possible to remove packages using the -a flag while excluding one particular package (plus its depndencies) ?? eg. php

Thanks for help !
Reply With Quote
  #2   (View Single Post)  
Old 24th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Once again, the answer you seek is in a man page.

$man pkg_add
/Manual Installation

Pay attention to the second paragraph.
Reply With Quote
  #3   (View Single Post)  
Old 24th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thank you , but I'm afraid I couldn't get an answer from the man.
I have a similar question please :
Is there a possibility to remove all installed packages except one particular package (+its dependencies) ?
kind of workaround to exclude a package
Reply With Quote
  #4   (View Single Post)  
Old 24th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

daemonfowl, its appears to me that you have a block when it comes to technical information of any kind. As I see it, if the exact steps aren't laid out one-at-a-time in easy to swallow form so that you can copy/paste a solution, you never see an answer.

Let me lay out what you missed. I recommended you pay attention to the second paragraph, which I have highlighted.
Code:
   Manual installation
     pkg_add differentiates between packages specified on the command line,
     and packages installed automatically because of inter-dependencies: the
     first kind will be tagged as `installed manually'.  The -a option is used
     internally by the ports(7) infrastructure and dpb(1) to handle
     dependencies.

     It is also possible to tweak the `installed manually' status of a package
     after the fact.  Running pkg_add on an already installed package will tag
     it as `installed manually', even if it was already there as a dependency
     of something else, and doubling the -a option will remove the `installed
     manually' tag from installed packages.

     pkg_info(1) can be used to show only manually-installed packages, and
     pkg_delete(1) can be used to remove dependencies when they are no longer
     needed.
You missed these logical steps:
  1. "Packages I install myself are marked as 'installed manually'. Dependencies that automatically install are not marked that way."
  2. "I can change an installed package's marking just by using pkg_add with it."
  3. "I can check which packages are marked as 'installed manually' with pkg_info. I can read its man page to find out how."
  4. "If I mark my php package as 'installed manually' and check to make sure its set that way, it will not be deleted when I run pkg_delete -a. And, any dependencies php has will also not be deleted, since they are still needed by php."
As you know, I have been concerned about your inability to make these connections. Skills and knowledge do not come from copying and pasting.
Reply With Quote
  #5   (View Single Post)  
Old 24th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thank you ! & sorry
Quote:
you have a block when it comes to technical information of any kind
Obviously , as true as sunrise.
Reply With Quote
  #6   (View Single Post)  
Old 24th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I'd once written:
Quote:
Originally Posted by jggimi View Post
I believe people should be comfortable coming here with no BSD experience and little or no technical background, but they must be willing to obtain both if they wish success.
Are you willing to build up some technical expertise, daemonfowl? If so, I am willing to assist you, but we will have to find some other way than this forum. If you cannot learn to use the FAQ or the man pages you will not ever be able to manage your own systems. You will forever be searching for a "HowTo" document from someone.

I'm willing to help you, but only if you are willing to learn. Consider any (or all) of the following communications methods, and let me know if you are interested in pursuing any of these.
  • Audio discussions -- if you would prefer conversational English
  • "White board" diagrams
  • Presentations
  • Shared tmux sessions
  • Instant messaging "chat"
  • Bootable system consoles via tmux sessions
If you are interested, let me know, and let me know which method(s) you feel might be helpful to you.
However, there is no way I can address your dozens of open, unresolved issues. Either pick: a) introduction to backup and restore, or b) an introduction to using tar, or c) ONE of your many open problems.
If you aren't interested in acquiring some technical self-sufficiency, let me know that, too, so I can stop trying to help.
Reply With Quote
  #7   (View Single Post)  
Old 24th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Sir jggimi , I appreciate your generous offer ! Thank you so much , Worthy Man !
Of course I'm so willing to learn but I'm also aware of my limits as a dumb Art Student :-) .. my Achilles Heel has always been Maths .. and I've been struggling to convince myself that OpenBSD -and Unix- could be for 'us' as well . Lol , sure it is .. to some extent .. :-)
Tmux as a teaching/learning medium seems really interesting .. but instant messaging is simpler .. pf is a subject I'd love to grok first if you accept
Again thank you so much !!
Reply With Quote
  #8   (View Single Post)  
Old 24th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I'm sorry, but PF is a poor first choice. To understand how to use PF, you must first understand TCP/IP networking. Unfortunately TCP/IP networking -- even the basics -- is NOT something that can be quickly taught. Please pick a different topic.
Reply With Quote
  #9   (View Single Post)  
Old 25th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Then how about choice a ? Intro to backup & restore .. I hope I won't disappoint you here
Reply With Quote
Old 25th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Excellent.

I will send you a PM. You will not need to install any software, everything you will need is already included with OpenBSD: ssh-keygen(1) and ssh(1).
Reply With Quote
Old 26th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thank you so much , Teacher jggimi !!!
The shared tmux tutorial session was quite interesting , quite new ..
:-)
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
package questions sharris FreeBSD Ports and Packages 4 4th July 2011 10:23 AM
What came first: the port or the package? rpindy General software and network 4 27th June 2010 11:15 PM
Package Updates for OpenBSD 4.2 and 4.3 shep OpenBSD Packages and Ports 15 17th October 2009 02:39 PM
tcpdump package bsdnewbie999 OpenBSD Packages and Ports 6 30th March 2009 05:24 PM
OpenJDK package aleunix OpenBSD Packages and Ports 2 2nd June 2008 07:54 AM


All times are GMT. The time now is 08:41 AM.


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