question for *nix users

Discussion in 'OT Technology' started by D1G1T4L, Feb 7, 2004.

  1. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    How do you guys update your boxes?
    for example Windows has Windows Update, is there some utility for *nix operating system? i know redhat has that update thing in x windows but you have to register for it which is :greddy:
     
  2. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    emerge for my gentoo box :big grin:
     
  3. dtfromep

    dtfromep New Member

    Joined:
    Oct 11, 2003
    Messages:
    1,674
    Likes Received:
    0
    Location:
    Saint Paul, MN
    there is an up2date function in a lot of the linux distros, cannot remember which ones exactly, see if up2date shows up on yours
     
  4. Wolf68k

    Wolf68k OT Supporter

    Joined:
    Dec 18, 2003
    Messages:
    4,861
    Likes Received:
    2
    Location:
    Houston, Texas
    I know RedHat has an updater that checks daily
     
  5. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    up2date is included in redhat.

    But I use apt-get. It's by far my favorite package manager - it automatically resolves and installs dependencies, for one thing. And a single simple command will update every package in your system at one whack:

    # apt-get update && apt-get dist-upgrade
     
  6. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    so what does up2date and apt=get update actually update? except dependencies etc?
     
  7. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    It updates all the installed packages on the system that have updates available.

    I don't know if it will run on suse (that's what you have, right?). I think it was written for debian, and I use a port to redhat for rpm packages.
     
  8. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area

    nah i have redhat 9.0 on one of my boxes

    i was planning to install suse on a laptop
     
  9. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area

    so what do i do in order to use apt-get on redhat?
     
  10. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    my time zone and clock are all set corrrectly but when i run

    up2date i get this error


    There was an SSL error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
    A common cause of this error is the system time being incorrect. Verify that the time on this system is correct.
     
  11. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    go to http://apt-rpm.tuxfamily.org and download the correct rpm for your distribution from there. Once it's downloaded, you go to a command prompt, change to the directory where you saved it, and run this command:

    rpm -ivh <filename>

    after that's finished, type

    apt-get update

    and it will download the newest package lists. to install a new package (mplayer, for example):

    apt-get install mplayer

    It does all the work for you. To upgrade all packages in your distribution:

    apt-get dist-upgrade
     
  12. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    thx bro

    btw i found why up2date doesnt work

    from redhat site

    Code:
    IMPORTANT MESSAGE REGARDING REGISTRATION WITH RHN:
    
    The certificate used by up2date and rhn_register to communicate with the Red Hat Network reached its end of life on August 28th 2003. Users attempting to register with Red Hat Network will see SSL connection or certificate verification failures.
    
    New versions of the up2date client that contain the new certificate are immediately available for download at:
    
        [url]https://rhn.redhat.com/help/latest-up2date.pxt[/url]
    
    In order to register your system with RHN to receive updates, the following command must be run as root after the above packages are installed:
    
    For Red Hat Linux 8.0 and 9:
    
        [[email protected] home]$ up2date --register
    
    For all other variants:
    
        [[email protected] home]$ rhn_register
    
     
  13. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    Cool, good find. I stopped using up2date about 2 years ago when my trial subscription expired. :)
     
  14. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    emerge rocks
     
  15. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area
    apt is :cool: :)

    btw where do i look to see what packages i can install with apt?

    also how does apt work ? do they have some serving running and when someone requests an install it does everything for them or what?
     
  16. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    There are what are called apt-get repositories that have all the packages. there are two that I use regularly - the default one at tuxfamily.org, and the one at freshrpms.net (you edit /etc/apt/sources.list to change which you connect to).
     
  17. D1G1T4L

    D1G1T4L Active Member

    Joined:
    May 4, 2001
    Messages:
    16,489
    Likes Received:
    0
    Location:
    Bay Area

    so what is a regular process of installing a normal package? like lets say u want to install some mp3 player (something else then mplayer or for example u dont know that the program name is mplayer) what do u do?
     
  18. Joe_Cool

    Joe_Cool Never trust a woman or a government. Moderator

    Joined:
    Jun 30, 2003
    Messages:
    299,566
    Likes Received:
    621
    You have to figure out what program you want to install then use apt-get with the package name.
     

Share This Page