Strona 1 z 1

Ubuntu 14.04 update

: 26 lip 2017, 20:43
autor: jakubm82
Cześć,

Pytanie laika... właśnie zainstalowałem Ubuntu 14.04 (tak wiem, że jest nowsza wersja).
Czy po wpisaniu sudo apt-get update && sudo apt-get upgrade moje Ubuntu zostanie zaktualizowane do 17.04 (ewentualnie 16.04) ?
Pytam, bo NIE chcę aktualizować systemu do wyższej wersji ale chciałbym się pozbyć crash'a który od czasu do czasu mi wyskakuje a związany jest z usr/bin/compiz - gdzieś wyczytałem, że po świeżej instalacji warto zapuścić update - ale boję się, że podniesie mi to wersję.

Pozdrawiam
Kuba

Re: Ubuntu 14.04 update

: 26 lip 2017, 21:12
autor: Tomfoc
Pierwsze polecenie sprawdzi jakie są wersje pakietów w repo. Drugie zaktualizuje pakiety. Nie spowodujesz w ten sposób aktualizacji Ubuntu do wyższej (nowszej) wersji. Zamiast

Kod: Zaznacz cały

sudo apt-get update
używaj

Kod: Zaznacz cały

apt update
zamiast

Kod: Zaznacz cały

apt-get upgrade
używaj

Kod: Zaznacz cały

apt upgrade
I jeszcze jedno - tego "updata" "zapuszczaj" często, jeśli możesz, to każdego dnia.

Re: Ubuntu 14.04 update

: 26 lip 2017, 21:42
autor: jakubm82
Dzięki!
Tak przy okazji - dlaczego nie "apt-get" a "apt ..." ?

Re: Ubuntu 14.04 update

: 26 lip 2017, 22:06
autor: Tomfoc
Po co to dodatkowe get, skoro to to samo. Zauważ, że apt-get update nie poinformuje Cię czy są pakiety do aktualizacji, natomiast polecenie apt update od razu informuje czy i ile pakietów można zaktualizować.

Kod: Zaznacz cały

 apt info
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package