Files Inside a PKG

OnlyRipper

New Member


Messages: 5

I have a question regarding pkg.I'm new to using freebsd.
Let's say i have a pkg called X.After installing it how can i update only the files inside this pkg,more precisely how to check if the files inside this folder X created by pkg X are up to date?
I just don't to check for updates for all pkgs already installed.
 

ShelLuser

Son of Beastie

Reaction score: 1,732
Messages: 3,553

And to check if the package doesn't have any updates available you'd use pkg-version(8) but the syntax depends a bit on the way you installed the package. Assuming you used a binary repository (so " # pkg install X") you could use pkg version -n X where the character behind the name will determine it's status.

See the manualpage(s) for more details on that.
 
OP
OP
O

OnlyRipper

New Member


Messages: 5

Unless I ain't understanding your question:
pkg upgrade X
And to check if the package doesn't have any updates available you'd use pkg-version(8) but the syntax depends a bit on the way you installed the package. Assuming you used a binary repository (so " # pkg install X") you could use pkg version -n X where the character behind the name will determine it's status.

See the manualpage(s) for more details on that.
Why not? You should keep everything up to date or you might get weird dependency issues.

Thank you for all your messages.Sorry for my delayed response.I've been busy with some exams.
Also in the free time i've read a little more about FreeBSD (In general,like most common issues :p - Newbie version)
Now i know how to upgrade something specific.
I'm afraid that if i upgrade some pkg to newer versions it might end up with come conflicts.
 

Emrion

Active Member

Reaction score: 40
Messages: 194

I'm afraid that if i upgrade some pkg to newer versions it might end up with come conflicts.
This happens from time to time. If you have a means to save your current system ( bectl if you have zfs on root or if you are in a VM in order to backup before upgrade), it's worth to try a pkg upgrade as SirDice said when you encounter any problem after upgraded a single software.

It saved me several times.
 

Sevendogsbsd

Aspiring Daemon

Reaction score: 261
Messages: 552

I'm afraid that if i upgrade some pkg to newer versions it might end up with come conflicts.
Which is exactly why SirDice said what he did. If you are coming from Linux, keep in mind that FreeBSD errs on the side of stability, not bleeding edge. Linux (not all distros) tend to provide the latest packages but this can cause issues.
 
OP
OP
O

OnlyRipper

New Member


Messages: 5

I come from nothing.that's why i'm asking these silly question.Someone might think i'm stupid,but i'm not that stupid.
I ask these silly questions becuase they are at the bottom of building something.Never worked with linux more thatn i've worked with FreeBSD.
I apologize if my questions are for newbies,but that's what i am right now.
Thank you alot for all of your help! and thanks for not telling me i'm a dummy :p
 

Sevendogsbsd

Aspiring Daemon

Reaction score: 261
Messages: 552

You are not a dummy for asking questions at all! I assumed because of the question you were coming from Linux, my fault, apologies.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,756
Messages: 30,867

I come from nothing.
We all did. We were all FreeBSD newbies once too.
That's why I'm asking these silly question. Someone might think I'm stupid, but I'm not that stupid.
A wise man learns more from asking a dumb question than a dumb person learns from a wise answer.
 
Top