getting the running patch level

2012-08-09 Thread Roberto

Hi all,
I would like to know if there is a command or a way to retrieve the "patch
level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of the
running system: just an example, if I run:

# freebsd-update fetch
...
No updates needed to update system to 9.0-RELEASE-p4


or:
...
The following files will be updated as part of updating to 9.0-RELEASE-p4:
...

but this give me no info about the current system; I tried a brief search in
config file but no luck;

again the question is:
is there a way to determine for a running server which "patch level" is
currently at ?

thanks
Roberto

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


Re: getting the running patch level

2012-08-09 Thread Przemyslaw Zoltowski

Wiadomość napisana przez "Roberto"  w dniu 9 sie 2012, o 
godz. 11:44:

> 
> Hi all,
> I would like to know if there is a command or a way to retrieve the "patch
> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of the
> running system: just an example, if I run:
> 
> # freebsd-update fetch
> ...
> No updates needed to update system to 9.0-RELEASE-p4
> 
> 
> or:
> ...
> The following files will be updated as part of updating to 9.0-RELEASE-p4:
> ...
> 
> but this give me no info about the current system; I tried a brief search in
> config file but no luck;
> 
> again the question is:
> is there a way to determine for a running server which "patch level" is
> currently at ?

uname -a

> 
> thanks
> Roberto
> 
> ___
> freebsd-security@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-security
> To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


RE: getting the running patch level

2012-08-09 Thread Károly Arnhoffer
Hi,

As I can remember 
# uname -a
provides this information.

Regards,
Karoly

-Original Message-
From: owner-freebsd-secur...@freebsd.org 
[mailto:owner-freebsd-secur...@freebsd.org] On Behalf Of Roberto
Sent: Thursday, August 09, 2012 11:44 AM
To: freebsd-security@freebsd.org
Subject: getting the running patch level


Hi all,
I would like to know if there is a command or a way to retrieve the "patch 
level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of the 
running system: just an example, if I run:

# freebsd-update fetch
...
No updates needed to update system to 9.0-RELEASE-p4


or:
...
The following files will be updated as part of updating to 9.0-RELEASE-p4:
...

but this give me no info about the current system; I tried a brief search in 
config file but no luck;

again the question is:
is there a way to determine for a running server which "patch level" is 
currently at ?

thanks
Roberto

___
freebsd-security@freebsd.org mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"
___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


Re: getting the running patch level

2012-08-09 Thread cronfy
>> Hi all,
>> I would like to know if there is a command or a way to retrieve the "patch
>> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of the
>> running system: just an example, if I run:
>> # freebsd-update fetch
>> No updates needed to update system to 9.0-RELEASE-p4
>> or:
>> ...
>> The following files will be updated as part of updating to 9.0-RELEASE-p4:
>> ...
>> but this give me no info about the current system; I tried a brief search in
>> config file but no luck;
>> again the question is:
>> is there a way to determine for a running server which "patch level" is
>> currently at ?
> uname -a

Unfortunately there is no trivial way. uname -a will show you correct
patch level only if kernel was changed at this patch level.

So the only way is to see what updates freebsd-update offers to you
and try to guess, on which patch level you are on now.

-- 
Олег Петрачев
___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


Re: getting the running patch level

2012-08-09 Thread Henrik Andersen
Hi all,

You can find the current patch level in /usr/src/sys/conf/newvers.sh ex:
  TYPE="FreeBSD"
  REVISION="8.3"
  BRANCH="RELEASE-p4"

uname -v on the same server:
FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

If I read the handbook correctly this should always be true on systems
using freebsd-update.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

Regards,
Henrik

On Thu, Aug 9, 2012 at 8:02 AM, cronfy  wrote:

> >> Hi all,
> >> I would like to know if there is a command or a way to retrieve the
> "patch
> >> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of
> the
> >> running system: just an example, if I run:
> >> # freebsd-update fetch
> >> No updates needed to update system to 9.0-RELEASE-p4
> >> or:
> >> ...
> >> The following files will be updated as part of updating to
> 9.0-RELEASE-p4:
> >> ...
> >> but this give me no info about the current system; I tried a brief
> search in
> >> config file but no luck;
> >> again the question is:
> >> is there a way to determine for a running server which "patch level" is
> >> currently at ?
> > uname -a
>
> Unfortunately there is no trivial way. uname -a will show you correct
> patch level only if kernel was changed at this patch level.
>
> So the only way is to see what updates freebsd-update offers to you
> and try to guess, on which patch level you are on now.
>
> --
> Олег Петрачев
> ___
> freebsd-security@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-security
> To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org
> "
>
___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


RE: getting the running patch level

2012-08-09 Thread Roberto

just a try on the server:

--
% uname -a
FreeBSD .y 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
%
--

and with the update command:
--
# freebsd-update fetch
...
No updates needed to update system to 9.0-RELEASE-p4
--

so I think uname will NOT give me enough info on the running os patchlevel
(p4),  maybe uname could be useful when the kernel itself is updated in the
update process and the system rebooted;
or I am probably missing something ...

regards
Roberto

On Thu, August 9, 2012 13:44, Károly Arnhoffer wrote:
> Hi,
>
> As I can remember
> # uname -a
> provides this information.
>
> Regards,
> Karoly
>
> -Original Message-
> From: owner-freebsd-secur...@freebsd.org
> [mailto:owner-freebsd-secur...@freebsd.org] On Behalf Of Roberto
> Sent: Thursday, August 09, 2012 11:44 AM
> To: freebsd-security@freebsd.org
> Subject: getting the running patch level
>
>
> Hi all,
> I would like to know if there is a command or a way to retrieve the "patch
> level" (the handbook defines it "builds names" like 7.0-RELEASE-p1) of the
> running system: just an example, if I run:
>
> # freebsd-update fetch
> ...
> No updates needed to update system to 9.0-RELEASE-p4
>
>
> or:
> ...
> The following files will be updated as part of updating to 9.0-RELEASE-p4:
> ...
>
> but this give me no info about the current system; I tried a brief search in
> config file but no luck;
>
> again the question is:
> is there a way to determine for a running server which "patch level" is
> currently at ?
>
> thanks
> Roberto
>
> ___
> freebsd-security@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-security
> To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"
>

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


RE: getting the running patch level

2012-08-09 Thread Cedric GROSS
Hello Roberto,

In fact "uname -a" report patch level BUT if you update your system by
freebsd-update, patch level could be an old one.
As discuss here http://forums.freebsd.org/archive/index.php/t-20154.html

Regards
Cedric

-Message d'origine-
De : owner-freebsd-secur...@freebsd.org
[mailto:owner-freebsd-secur...@freebsd.org] De la part de Roberto
Envoyé : jeudi 9 août 2012 15:39
À : Károly Arnhoffer
Cc : freebsd-security@freebsd.org
Objet : RE: getting the running patch level
Importance : Haute


just a try on the server:

--
% uname -a
FreeBSD .y 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30
UTC
2012 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
%
--

and with the update command:
--
# freebsd-update fetch
...
No updates needed to update system to 9.0-RELEASE-p4
--

so I think uname will NOT give me enough info on the running os patchlevel
(p4),  maybe uname could be useful when the kernel itself is updated in the
update process and the system rebooted; or I am probably missing something
...

regards
Roberto

On Thu, August 9, 2012 13:44, Károly Arnhoffer wrote:
> Hi,
>
> As I can remember
> # uname -a
> provides this information.
>
> Regards,
> Karoly
>
> -Original Message-
> From: owner-freebsd-secur...@freebsd.org
> [mailto:owner-freebsd-secur...@freebsd.org] On Behalf Of Roberto
> Sent: Thursday, August 09, 2012 11:44 AM
> To: freebsd-security@freebsd.org
> Subject: getting the running patch level
>
>
> Hi all,
> I would like to know if there is a command or a way to retrieve the 
> "patch level" (the handbook defines it "builds names" like 
> 7.0-RELEASE-p1) of the running system: just an example, if I run:
>
> # freebsd-update fetch
> ...
> No updates needed to update system to 9.0-RELEASE-p4
>
>
> or:
> ...
> The following files will be updated as part of updating to 9.0-RELEASE-p4:
> ...
>
> but this give me no info about the current system; I tried a brief 
> search in config file but no luck;
>
> again the question is:
> is there a way to determine for a running server which "patch level" 
> is currently at ?
>
> thanks
> Roberto
>
> ___
> freebsd-security@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-security
> To unsubscribe, send any mail to
"freebsd-security-unsubscr...@freebsd.org"
>

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


Re: getting the running patch level

2012-08-09 Thread Brett Glass
Yes, uname -v will work. Unfortunately, it has an annoying side effect. If one 
tries
to use the "sysinstall" program to install binary packages, it will fail when
a system patched by freebsd-update tries to access the FTP server, because the 
FTP 
server doesn't know about patch levels.

One must MANUALLY go to the Options screen and remove the patch level
(-p3, -p4 or whatever) from the version string before one can install a binary
package.

I realize that sysinstall is deprecated in favor of the new installer, but
the new installer doesn't have the ability to install binary packages.
Until and unless there's a convenient menu-based installer for binary
packages, would it be possible to fix this glitch?

--Brett Glass

At 09:43 AM 8/9/2012, Henrik Andersen wrote:
 
>Hi all,
>
>You can find the current patch level in /usr/src/sys/conf/newvers.sh ex:
>  TYPE="FreeBSD"
>  REVISION="8.3"
>  BRANCH="RELEASE-p4"
>
>uname -v on the same server:
>FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012
>r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
>
>If I read the handbook correctly this should always be true on systems
>using freebsd-update.
>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
>
>Regards,
>Henrik

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"


Re: getting the running patch level

2012-08-09 Thread Glen Barber
On Thu, Aug 09, 2012 at 03:31:25PM -0600, Brett Glass wrote:
> I realize that sysinstall is deprecated in favor of the new installer, but
> the new installer doesn't have the ability to install binary packages.
> Until and unless there's a convenient menu-based installer for binary
> packages, would it be possible to fix this glitch?
> 

There is always pkgng, granted it is not menu-driven.

Glen

___
freebsd-security@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "freebsd-security-unsubscr...@freebsd.org"