{"id":633,"date":"2021-09-24T12:09:14","date_gmt":"2021-09-24T09:09:14","guid":{"rendered":"http:\/\/tietokanta.dy.fi\/linux\/?p=633"},"modified":"2021-09-24T12:09:14","modified_gmt":"2021-09-24T09:09:14","slug":"apt-get-pakettien-hallinta","status":"publish","type":"post","link":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2021\/09\/24\/apt-get-pakettien-hallinta\/","title":{"rendered":"APT-GET pakettien hallinta"},"content":{"rendered":"\n<p>Komento:<br>apt-get [options] [-o config=string] [-c=cfgfile] command [pkg]<br>update &#8211; Retrieve new lists of packages<br>upgrade &#8211; Perform an upgrade<br>install &#8211; Install new packages (pkg is libc6 not libc6.deb)<br>reinstall &#8211; Reinstall packages (pkg is libc6 not libc6.deb)<br>remove &#8211; Remove packages<br>purge &#8211; Remove packages and config files<br>autoremove &#8211; Remove automatically all unused packages<br>dist-upgrade &#8211; Distribution upgrade, see apt-get(8)<br>dselect-upgrade &#8211; Follow dselect selections<br>build-dep &#8211; Configure build-dependencies for source packages<br>clean &#8211; Erase downloaded archive files<br>autoclean &#8211; Erase old downloaded archive files<br>check &#8211; Verify that there are no broken dependencies<br>source &#8211; Download source archives<br>download &#8211; Download the binary package into the current directory<br>changelog &#8211; Download and display the changelog for the given package<\/p>\n\n\n\n<ul><li><strong>update: <\/strong>K\u00e4ytet\u00e4\u00e4n pakettien hakemistotiedostojen synkronoimiseen uudelleen l\u00e4hteist\u00e4. Saatavilla olevien pakettien hakemistot haetaan \/etc\/apt\/sources.list (5) -kohdassa m\u00e4\u00e4ritetyist\u00e4 sijainneista. P\u00e4ivitys on aina suoritettava ennen p\u00e4ivityst\u00e4 tai et\u00e4p\u00e4ivityst\u00e4.<\/li><li><strong>upgrade:<\/strong> K\u00e4ytet\u00e4\u00e4n kaikkien j\u00e4rjestelm\u00e4\u00e4n asennettujen pakettien uusimpien versioiden asentamiseen l\u00e4hteist\u00e4 \/etc\/apt\/sources.list (5) luetelluista l\u00e4hteist\u00e4. T\u00e4ll\u00e4 hetkell\u00e4 asennetut paketit, joissa on saatavilla uusia versioita, haetaan ja p\u00e4ivitet\u00e4\u00e4n. asennettuja paketteja ei poisteta miss\u00e4\u00e4n olosuhteissa, eik\u00e4 paketteja, joita ei ole jo asennettu, haeta ja asenneta. T\u00e4ll\u00e4 hetkell\u00e4 asennettujen pakettien uudet versiot, joita ei voida p\u00e4ivitt\u00e4\u00e4 muuttamatta toisen paketin asennustilaa, j\u00e4tet\u00e4\u00e4n nykyiseen versioon. P\u00e4ivitys on suoritettava ensin, jotta apt-get tiet\u00e4\u00e4, ett\u00e4 uusia versioita paketeista on saatavilla.<\/li><li><strong>dist-upgrade<\/strong>: P\u00e4ivitystoiminnon lis\u00e4ksi t\u00e4m\u00e4 vaihtoehto k\u00e4sittelee \u00e4lykk\u00e4\u00e4sti muuttuvia riippuvuuksia uusien pakettiversioiden kanssa; apt-getill\u00e4 on &#8220;\u00e4lyk\u00e4s&#8221; konfliktinratkaisuj\u00e4rjestelm\u00e4, ja se yritt\u00e4\u00e4 tarvittaessa p\u00e4ivitt\u00e4\u00e4 t\u00e4rkeimm\u00e4t paketit v\u00e4hemm\u00e4n t\u00e4rkeiden kustannuksella.<\/li><li><strong>Install:<\/strong> Toiminnon avulla voidaan asentaa haluttuja ohjelmia.<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Komento:apt-get [options] [-o config=string] [-c=cfgfile] command [pkg]update &#8211; Retrieve new lists of packagesupgrade &#8211; Perform an upgradeinstall &#8211; Install new packages (pkg is libc6 not libc6.deb)reinstall &#8211; Reinstall packages (pkg is libc6 not libc6.deb)remove &#8211; Remove packagespurge &#8211; Remove packages and config filesautoremove &#8211; Remove automatically all unused packagesdist-upgrade &#8211; Distribution upgrade, see apt-get(8)dselect-upgrade &#8211; &hellip; <a href=\"http:\/\/tietokanta.dy.fi\/linux\/index.php\/2021\/09\/24\/apt-get-pakettien-hallinta\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">APT-GET pakettien hallinta<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/633"}],"collection":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/comments?post=633"}],"version-history":[{"count":1,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/633\/revisions"}],"predecessor-version":[{"id":634,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/posts\/633\/revisions\/634"}],"wp:attachment":[{"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/media?parent=633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/categories?post=633"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tietokanta.dy.fi\/linux\/index.php\/wp-json\/wp\/v2\/tags?post=633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}