1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need apt-get update like command

Discussion in 'Installation and Maintenance of Ports or Packages' started by cola, Dec 2, 2010.

  1. cola

    cola New Member

    Messages:
    50
    Thanks Received:
    0
    apt-get update command updates the cache database of all packages from mirror.
    Is there any command to do that for freebsd?
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,628
    Thanks Received:
    2,386
    You don't need it. Forget what you've learned on Linux. Learn the FreeBSD way of doing things.
     
  3. UNIXgod

    UNIXgod New Member

    Messages:
    1,089
    Thanks Received:
    195
    Bit sensitive there eh?

    OP look at portsnap() or csup()
     
  4. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,628
    Thanks Received:
    2,386
    No, just tired of Linux people migrating to FreeBSD and thinking the Linux way is the one and only way to do things.
     
  5. cola

    cola New Member

    Messages:
    50
    Thanks Received:
    0
    Hello,
    I don't want to download ports to compile from source.
     
  6. ahavatar

    ahavatar Member

    Messages:
    196
    Thanks Received:
    22
    You have to do "portsnap fetch update" first to check if the ports (packages) have new versions available ("pkg_version"). To use only binary packages, do "portupgrade -PP" that installs available binaries only. Keep in mind that compiled binaries are available a few days later than ports updates, thus it is possible that no updated binaries are available for some time.