Quickie question

View: New views
11 Messages — Rating Filter:   Alert me  

Quickie question

by Allen-37 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey all,

I know this SHOULD go to FreeBSD-Questions, but I'm trying to fix up a machine
right now, so I don't have normal access to my mail account, and this is the
only one I can send to without spending a half hour redoing something, so
please allow this once to ask here:

On my test machine, I noticed the usual mail to root letting me know that
there were some security problems in a few things I have installed, like
Opera and Thunderbird, and so I first did a freebsd-update to get the base
system updated to make sure that was done, and I also did portupdate on those
packages like this:

portupdate -v opera

I did it on pidgin and realized it couldn't sign in anymore and thought "Oh
man, one of those I'm tired errors" I forgot to update the other parts, so
rather than make a huge list of stuff to update, I did this:

portupdate or portupgrade -a to get them all. After I did this, I noticed that
pkg_add -r no longer lets me add things.

It says that it has no access or can't be found. Just to be sure I did
pkg_add -r kde and got the same message (I already have KDE, I did it to see
if it was just me spelling it wrong)

I know I missed something... I just can't for the life of me find out what...
I know I'm doing something wrong though.

So anyway, after running it with -a, what should I have done? Why would a few
things stop working ? Did I do something terribly stupid? The network
connection is fine, I checked that, it's just that I can't use pkg_add -r
anymore.
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Tony Theodore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>
> So anyway, after running it with -a, what should I have done? Why would a few
> things stop working ? Did I do something terribly stupid? The network
> connection is fine, I checked that, it's just that I can't use pkg_add -r
> anymore.

I think portupgrade -a will have updated all packages to the latest
versions, and pkg_add -r won't be able to find a newer one to install.
Try adding a package that you don't already have installed and see
what happens.

Tony
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Alex Moura-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What does   portversion -l \<
or pkg_version -l \<
says?

Alex

On 17/10/2009, at 02:17, Tony Theodore <tonyt@...> wrote:

>>
>> So anyway, after running it with -a, what should I have done? Why  
>> would a few
>> things stop working ? Did I do something terribly stupid? The network
>> connection is fine, I checked that, it's just that I can't use  
>> pkg_add -r
>> anymore.
>
> I think portupgrade -a will have updated all packages to the latest
> versions, and pkg_add -r won't be able to find a newer one to install.
> Try adding a package that you don't already have installed and see
> what happens.
>
> Tony
> _______________________________________________
> freebsd-chat@... mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chat
> To unsubscribe, send any mail to "freebsd-chat-
> unsubscribe@..."
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Allen-37 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 17 October 2009 01:17:21 am Tony Theodore wrote:

> I think portupgrade -a will have updated all packages to the latest
> versions, and pkg_add -r won't be able to find a newer one to install.
> Try adding a package that you don't already have installed and see
> what happens.

Hey, thanks for answering !

OK, here is what happens if I try something like asclock which wasn't
installed:

pkg_add -r asclock
Error: FTP Unable to get
ftp://ftp.freebsd.org/pub/freebsd/ports/i386/packages-7.1-release/Latest/asclock.tbz
File unavailable (e.g., File not found, no access)
pkg_add: unable to
fetch 'ftp://ftp.freebsd.org/pub/freebsd/ports/i386/packages-7.1-release/Latest/asclock.tbz'
by URL

So basically, if I try to use pkg_add -r now, it won't work. It didn't happen
until I did the upgrading or updating, so I'm thinking I made a screw up.

Thansk again for the quick response :)
> Tony

-Allen
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Tony Theodore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/17 Allen <GedankeZauberer@...>:

> On Saturday 17 October 2009 01:17:21 am Tony Theodore wrote:
>
>> I think portupgrade -a will have updated all packages to the latest
>> versions, and pkg_add -r won't be able to find a newer one to install.
>> Try adding a package that you don't already have installed and see
>> what happens.
>
> Hey, thanks for answering !
>
> OK, here is what happens if I try something like asclock which wasn't
> installed:
>
> pkg_add -r asclock
> Error: FTP Unable to get
> ftp://ftp.freebsd.org/pub/freebsd/ports/i386/packages-7.1-release/Latest/asclock.tbz
> File unavailable (e.g., File not found, no access)
> pkg_add: unable to
> fetch 'ftp://ftp.freebsd.org/pub/freebsd/ports/i386/packages-7.1-release/Latest/asclock.tbz'
> by URL
>
> So basically, if I try to use pkg_add -r now, it won't work. It didn't happen
> until I did the upgrading or updating, so I'm thinking I made a screw up.

OK, so if you have a look at the contents of
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/, it seems 7.1 packages
are no longer being built. Not sure there's much you can do apart from
using ports or upgrading.
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Allen-37 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 17 October 2009 02:52:56 am Tony Theodore wrote:
*Snipped for politeness*

> OK, so if you have a look at the contents of
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/, it seems 7.1 packages
> are no longer being built. Not sure there's much you can do apart from
> using ports or upgrading.


Hey,

Thanks for letting me know about that. I didn't know. I heard the other day on
here that 7.1 had a longer life cycle than 7.2 so I hadn't upgraded as I
planned on waiting for 8.0, but I guess it's time to just go ahead and
upgrade.

I'm still getting used to FreeBSD's update VS upgrade style, because even
though I've had FreeBSD since 4.0, I would usually set up a machine running
it and then use it for fun projects to toy with, but didn't ever set up
servers on it because I was confused for a long time on how you did security
patching. This was mostly because I came from a very Linux oriented
background in computing (I've only had a computer for... Well since 1999, so
I'm by no means a guru at anything) but on Linux and Windows, you just
install patches and that's it, and on Linux for example; You just download a
patch as a security fix, install or update the thing, and you're done.

Slackware is what I run on my main FTP server, and there, I use Swaret now,
but before I'd just use wget to grab a new tgz package, and use upgradepkg to
get the machine patched, so when I got to FreeBSD patches, I was very
confused because I couldn't figure out why freebsd-update didn't patch opera
lol.

Yea I know, stupidity lol. Then I realized that freebsd-update did EXACTLY
what it was supposed to do, updating the base system, and that all those
things were ports, and I needed to update THOSE to fix those security holes.
So now I was like OK, I'll update the base with freebsd-update, and then when
I go and get new ports, I can use portsnap and portupdate / upgrade... And I
was like wow, I can just cd into the ports directory and build them, neat!

So it's been a learning experience, but at the same time, I took so much
longer than I should have, I felt pretty stupid when I realized what I was
doing wrong.

Is there a configuration file somewhere that pkg_add checks? I mean I know
there has to be one somewhere... Couldn't I change the server listed to use
one on freebsd.org/ports ? That way I could still install packages with it?

Anyway, thanks very much for all the help everyone! I'm going to probably
upgrade, just got a lot of back ups to get done because I was using it as a
secondary FTP server too heh.

-Allen
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Dag-Erling Smørgrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Allen <GedankeZauberer@...> writes:
> Thanks for letting me know about that. I didn't know. I heard the other day on
> here that 7.1 had a longer life cycle than 7.2 so I hadn't upgraded as I
> planned on waiting for 8.0, but I guess it's time to just go ahead and
> upgrade.

# frebesd-update -r 7.2-RELEASE upgrade

After upgrading, download the ports tree:

# portsnap fetch install
# portupgrade -a

In a month or so, do it again with 8.0-RELEASE, and run

# portsnap fetch update
# portupgrade -af

This will rebuild *all* your ports, not just those that are out-of-date.
Strongly recommended when upgrading to a new major release.

BTW, this belongs on -questions, not on -chat.

DES
--
Dag-Erling Smørgrav - des@...
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Dag-Erling Smørgrav :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dag-Erling Smørgrav <des@...> writes:
> After upgrading, download the ports tree:
>
> # portsnap fetch install

sorry, that should be "fetch extract".

DES
--
Dag-Erling Smørgrav - des@...
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Allen-37 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Saturday 17 October 2009 11:33:51 am Dag-Erling Smørgrav wrote:

> Allen <GedankeZauberer@...> writes:
> > Thanks for letting me know about that. I didn't know. I heard the other
> > day on here that 7.1 had a longer life cycle than 7.2 so I hadn't
> > upgraded as I planned on waiting for 8.0, but I guess it's time to just
> > go ahead and upgrade.
>
> # frebesd-update -r 7.2-RELEASE upgrade
>
> After upgrading, download the ports tree:
>
> # portsnap fetch install
> # portupgrade -a
>
> In a month or so, do it again with 8.0-RELEASE, and run
>
> # portsnap fetch update
> # portupgrade -af
>
> This will rebuild *all* your ports, not just those that are out-of-date.
> Strongly recommended when upgrading to a new major release.

Ahh thankls, I knew there was a way to upgrade everything without actually
grabbing the CDs. I grabbed the ISO images for 7.2 just in case a few weeks
ago, but I kinda like the upgrading over the net thing, and I haven't ever
done that before, I think I'll try that.

> BTW, this belongs on -questions, not on -chat.

I know, that's why I was saying thank you for allowing me to ask this here
since at the moment, and still, my normal email account, and all the lists,
are not usable yet (The machine is building itself from sources, can't get to
the mail) did a quickie kmail configure on another machine, but I don't have
all my lists and filters and anything else, and only this list is actually
coming in. FreeBSD-Questions isn't showing up right now, not sure why but
I'll check that later on, got a busy day today. Thanks again!

> DES

-Allen
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Oliver Fromme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Allen <GedankeZauberer@...> wrote:
 > On Saturday 17 October 2009 02:52:56 am Tony Theodore wrote:
 > > OK, so if you have a look at the contents of
 > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/, it seems 7.1 packages
 > > are no longer being built. Not sure there's much you can do apart from
 > > using ports or upgrading.
 >
 > Thanks for letting me know about that. I didn't know. I heard the other day on
 > here that 7.1 had a longer life cycle than 7.2 so I hadn't upgraded as I
 > planned on waiting for 8.0, but I guess it's time to just go ahead and
 > upgrade.

AFAIK this has nothing to do with the life cycle of 7.1.
The older packages (and 7.1 is regarded as older) have been
moved from the main FTP site to ftp-archive.freebsd.org.

You can still use the pkg_add tool with 7.1, you just have
to set the PACKAGESITE environment variable to the place
where the packages are located.  This has to be the full
URL including the path where the files are to be found.
See the pkg_add(1) manual page for detals, or ask Google.

However, note that the releaase packages are never updated.
If you want to update packages beyond the versions as of
the release, you need to follow the 7-stable packages.
(Or use the ports collection via portsnap, csup or similar,
but it seems you don't want to do that.)

Of course, updating to a newer version of FreeBSD is not
an entirely bad idea either.  ;-)

Best regards
   Oliver


--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Perl will consistently give you what you want,
unless what you want is consistency."
        -- Larry Wall
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."

Re: Quickie question

by Allen-37 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 19 October 2009 09:44:48 am Oliver Fromme wrote:

> Allen <GedankeZauberer@...> wrote:
>  > On Saturday 17 October 2009 02:52:56 am Tony Theodore wrote:
>  > > OK, so if you have a look at the contents of
>  > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/, it seems 7.1 packages
>  > > are no longer being built. Not sure there's much you can do apart from
>  > > using ports or upgrading.
>  >
>  > Thanks for letting me know about that. I didn't know. I heard the other
>  > day on here that 7.1 had a longer life cycle than 7.2 so I hadn't
>  > upgraded as I planned on waiting for 8.0, but I guess it's time to just
>  > go ahead and upgrade.
>
> AFAIK this has nothing to do with the life cycle of 7.1.
> The older packages (and 7.1 is regarded as older) have been
> moved from the main FTP site to ftp-archive.freebsd.org.
>
> You can still use the pkg_add tool with 7.1, you just have
> to set the PACKAGESITE environment variable to the place
> where the packages are located.  This has to be the full
> URL including the path where the files are to be found.
> See the pkg_add(1) manual page for detals, or ask Google.

I've been doing some reading on this lately because I wanted to know what the
best option would be, and since I do have a test machine set up almost the
same as the one in question, I think my best bet is just to upgrade to a new
version. I have... mm basically every book you can buy from FreeBSDMall, but
I've noticed the upgrade process is different in some of them, so I think I'm
going to just read the online one in the FreeBSD Docs as it should be the
more updated version, and just try out a new one.

> However, note that the releaase packages are never updated.
> If you want to update packages beyond the versions as of
> the release, you need to follow the 7-stable packages.
> (Or use the ports collection via portsnap, csup or similar,
> but it seems you don't want to do that.)
>
> Of course, updating to a newer version of FreeBSD is not
> an entirely bad idea either.  ;-)

Yea, I think this is my best bet since from what I've been reading so far,
they're talking about the 6.x branch AND 7.x branch being outdated soon, and
8.0 is going to be the only one that's... I can't recall the exact wording,
but being a guy I just took a mental note saying "OK, when 8.0 comes out,
upgrade, or do a fresh install, because the others aren't going to be worked
on as much".

I've been reading up on this a lot because, coming from a mostly Linux
background, the way STABLE and RELEASE are used is a little bit different. I
don't use RedHat or anything like that because I just don't like it, but
Slackware, SUSE, and Debian I do use, (SUSE has been a favorite OS of mine
for a long time. And having a friendship with their head security guy is nice
too) so I was like hmm, STABLE seems like the one I should use for my test
server, but BSD in general is stable as any OS you find anyway, so I usually
used RELEASE not realizing that it was not the best idea because it would
save me a lot of time if I was to just use Stable.



> Best regards
>    Oliver

Sehr danke !

-Allen
--
http://www.myspace.com/farmacyofhorror
Digital Horror Punk - Music I make! All done with LMMS
All done with Linux and FreeBSD
_______________________________________________
freebsd-chat@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@..."