-Syu vs -Syuu vs -Syyu - Newbie Corner

Manjaro Linux Forum · · 51 次点击 · · 开始浏览    
<header class="d-header"> <div class="wrap"> <div class="contents clearfix"> <div class="title"> <a href="/"> <img src="https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png" alt="Manjaro Linux Forum" id="site-logo"> </a> </div> <div class="panel clearfix"> <span class='header-buttons'> <a href="/signup" class='btn btn-primary btn-small sign-up-button'>Sign Up</a> <a href="/login" class='btn btn-primary btn-small login-button btn-icon-text'><svg class="fa d-icon svg-icon svg-node" aria-hidden="true"><svg id="user" viewBox="0 0 448 512"> <path d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"/> </svg></svg> Log In</a> </span> </div> </div> </div> </header> <div id="main-outlet" class="wrap" role="main"> <!-- preload-content: --> <div id="topic-title"> <h1> <a href="/t/syu-vs-syuu-vs-syyu/26486">-Syu vs -Syuu vs -Syyu</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="https://forum.manjaro.org/c/newbies/12" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #ED207B'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Newbie Corner</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/gumby48'><span itemprop='name'>gumby48</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2017-06-24T16:44:48Z' class='post-time'> 24 June 2017 16:44 </time> <meta itemprop='dateModified' content='2017-06-24T16:44:48Z'> <span itemprop='position'>#1</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Tried looking this up in google and on this forum but didn’t find any results.</p> <p>What’s the difference between adding another ‘y’ or ‘u’ to the command? What does the ‘y’ and ‘u’ even stand for?</p> <p>Thanks <img src="https://forum.manjaro.org/images/emoji/emoji_one/smiley.png?v=5" title=":smiley:" class="emoji" alt=":smiley:"></p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <meta itemprop='keywords' content=''> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://forum.manjaro.org/t/simply-unacceptable/73320/45" itemprop='item'> <meta itemprop='url' content='https://forum.manjaro.org/t/simply-unacceptable/73320/45'> <meta itemprop='position' content='1'> <span itemprop='name'>Simply unacceptable</span> </a> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://forum.manjaro.org/t/still-down-from-sysd-downgrade/73187/34" itemprop='item'> <meta itemprop='url' content='https://forum.manjaro.org/t/still-down-from-sysd-downgrade/73187/34'> <meta itemprop='position' content='2'> <span itemprop='name'>Still down from sysd downgrade</span> </a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/scjet'><span itemprop='name'>scjet</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <meta itemprop='datePublished' content='2017-06-24T16:54:25Z'> <time itemprop='dateModified' datetime='2017-06-26T01:42:05Z' class='post-time'> 26 June 2017 01:42 </time> <span itemprop='position'>#2</span> </span> </div> <div class='post' itemprop='articleBody'> <p>just do a “man pacman” from your Termnal, and all the switched/options are explained.<br> ie: “y” is explained under the “SYNC OPTIONS” section, …<br> and remeber, they’re case-sensitive.</p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/cimarronline'><span itemprop='name'>cimarronline</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2017-06-24T17:00:48Z' class='post-time'> 24 June 2017 17:00 </time> <meta itemprop='dateModified' content='2017-06-24T17:00:48Z'> <span itemprop='position'>#3</span> </span> </div> <div class='post' itemprop='articleBody'> <p>In case the man page is a bit much to sift through…</p> <p><code>pacman -Syu</code> updates your databases if the repositories haven’t been checked recently, and upgrades any new package versions.</p> <p><code>pacman -Syyu</code> forces updates of your databases for all repositories (even if it was just updated recently) and upgrades any new package versions.</p> <p><code>pacman -Syuu</code> upgrades packages and <em>also downgrades</em> packages (if you happen to have a newer version than in the repository). Normally this should not be used. Only if you’re trying to fix a specific issue due to a new package being removed from the repository.</p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="8" /> <span class='post-likes'>8 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/leledumbo'><span itemprop='name'>leledumbo</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <meta itemprop='datePublished' content='2017-06-24T18:28:17Z'> <time itemprop='dateModified' datetime='2017-06-26T01:42:05Z' class='post-time'> 26 June 2017 01:42 </time> <span itemprop='position'>#4</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Instead of man page, the builtin --help explains clearly and briefly:</p> <blockquote> <p>$ pacman -S --help<br> usage: pacman {-S --sync} [options] [package(s)]<br> options:<br> -b, --dbpath set an alternate database location<br> -c, --clean remove old packages from cache directory (-cc for all)<br> -d, --nodeps skip dependency version checks (-dd to skip all checks)<br> -g, --groups view all members of a package group<br> (-gg to view all groups and members)<br> -i, --info view package information (-ii for extended information)<br> -l, --list view a list of packages in a repo<br> -p, --print print the targets instead of performing the operation<br> -q, --quiet show less information for query and search<br> -r, --root set an alternate installation root<br> -s, --search search remote repositories for matching strings<br> <strong>-u, --sysupgrade upgrade installed packages (-uu enables downgrades)</strong><br> -v, --verbose be verbose<br> -w, --downloadonly download packages but do not install/upgrade anything<br> <strong>-y, --refresh download fresh package databases from the server</strong><br> <strong>(-yy to force a refresh even if up to date)</strong><br> –arch set an alternate architecture<br> –asdeps install packages as non-explicitly installed<br> –asexplicit install packages as explicitly installed<br> –assume-installed &lt;package=version&gt;<br> add a virtual package to satisfy dependencies<br> –cachedir set an alternate package cache location<br> –color colorize the output<br> –config set an alternate configuration file<br> –confirm always ask for confirmation<br> –dbonly only modify database entries, not package files<br> –debug display debug messages<br> –force force install, overwrite conflicting files<br> –gpgdir set an alternate home directory for GnuPG<br> –hookdir set an alternate hook location<br> –ignore ignore a package upgrade (can be used more than once)<br> –ignoregroup <br> ignore a group upgrade (can be used more than once)<br> –logfile set an alternate log file<br> –needed do not reinstall up to date packages<br> –noconfirm do not ask for any confirmation<br> –noprogressbar do not show a progress bar when downloading files<br> –noscriptlet do not execute the install scriptlet if one exists<br> –print-format <br> specify how the targets should be printed</p> </blockquote> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="4" /> <span class='post-likes'>4 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a href="https://forum.manjaro.org/t/stable-update-2019-01-23-kernels-mesa-browsers-nvidia-deepin-virtualbox/72986/138" itemprop='item'> <meta itemprop='url' content='https://forum.manjaro.org/t/stable-update-2019-01-23-kernels-mesa-browsers-nvidia-deepin-virtualbox/72986/138'> <meta itemprop='position' content='1'> <span itemprop='name'>[Stable Update] 2019-01-23 - Kernels, Mesa, Browsers, Nvidia, Deepin, VirtualBox</span> </a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/c00ter'><span itemprop='name'>c00ter</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2017-06-24T18:42:56Z' class='post-time'> 24 June 2017 18:42 </time> <meta itemprop='dateModified' content='2017-06-24T18:42:56Z'> <span itemprop='position'>#5</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Add to the fine advice above, a really good cheat-sheet called the <a href="https://wiki.archlinux.org/index.php/Pacman/Rosetta">Pacman Rosetta</a></p> <p>I have recently had the link tattooed to my forehead–<em>in reverse.</em> Should I ever forget the link, all I need do is look in any handy mirror…</p> <p><strong>rosetta</strong></p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/rahtgaz'><span itemprop='name'>rahtgaz</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <meta itemprop='datePublished' content='2017-06-24T19:28:11Z'> <time itemprop='dateModified' datetime='2017-06-24T19:47:25Z' class='post-time'> 24 June 2017 19:47 </time> <span itemprop='position'>#6</span> </span> </div> <div class='post' itemprop='articleBody'> <p>I think the major confusion always comes with the presence of one or two <code>y</code> and what are their real effects. The man documentation, although correct of course, isn’t very helpful and it’s not always easy to find the answer online. So here is my attempt at explaining it:</p> <p>This is what we know from reading documentation around:</p> <ul> <li> <strong><code>-y</code></strong> checks the repositories hashes on the available mirrors, comparing them to the local system. If there is a difference, downloads and updates the package list from the available mirrors.</li> <li> <strong><code>-yy</code></strong> doesn’t check anything. Just downloads and updates the package list for all repositories from the available mirrors.</li> </ul> <p>On the surface, there doesn’t seem to be much point to this. Why not just, you know, always use <code>-yy</code>? And in fact, you can. It’s perfectly alright.</p> <p>But it is pointless most of the time. The important word to retain from the above is ‘mirrors’. And this is an updated explanation:</p> <ul> <li> <strong><code>-y</code></strong> checks the repositories hashes on the available mirrors, comparing them to the local system. If there is a difference, downloads and updates the package list from the available mirrors. <strong>Use it when you haven’t made any changes to your repository or mirror list.</strong> </li> <li> <strong><code>-yy</code></strong> doesn’t check anything. Just downloads and updates the package list for all repositories from the available mirrors. <strong>Use it when you changed your repository or mirror lists.</strong> </li> </ul> <p>So, if you ran pacman-mirrors, or added or deleted repositories, you want to follow that up with <code>-Syyu</code> <strong>once</strong>. Any subsequent updates can be done simply with <strong>-Syu</strong>.</p> <p>In short, <code>-Syu</code> is the most common and useful of the two. Common, because you do tend to keep your mirrors unchanged for a good while. Useful, because it is faster, and only updates changed repositories and not all of them.</p> <p>Any suggestions of corrections or additions to this post are very welcomed.</p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="8" /> <span class='post-likes'>8 Likes</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="1" /> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/madmarv'><span itemprop='name'>madmarv</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2017-06-24T19:40:55Z' class='post-time'> 24 June 2017 19:40 </time> <meta itemprop='dateModified' content='2017-06-24T19:40:55Z'> <span itemprop='position'>#7</span> </span> </div> <div class='post' itemprop='articleBody'> <p>Thanks, putting the use cases like that helps clarify when to use each.</p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting' class='topic-body crawler-post'> <div class='crawler-post-meta'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Manjaro Linux'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.manjaro.org/uploads/default/original/3X/5/4/541e074d8ffd09b727a7ff23f8e97e41cd1a5b23.png'> </div> </div> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.manjaro.org/u/system'><span itemprop='name'>system</span></a> closed </span> <link itemprop="mainEntityOfPage" href="https://forum.manjaro.org/t/syu-vs-syuu-vs-syyu/26486"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2017-07-24T19:54:17Z' class='post-time'> 24 July 2017 19:54 </time> <meta itemprop='dateModified' content='2017-07-24T19:54:17Z'> <span itemprop='position'>#8</span> </span> </div> <div class='post' itemprop='articleBody'> <p>This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.</p> </div> <meta itemprop='headline' content='-Syu vs -Syuu vs -Syyu'> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/CommentAction"/> <meta itemprop="userInteractionCount" content="0" /> </div> </div> <!-- :preload-content --> <footer class="noscript-footer-nav"> <nav itemscope itemtype='http://schema.org/SiteNavigationElement'> <a href='/'>Home</a> <a href="/categories">Categories</a> <a href="/guidelines">FAQ/Guidelines</a> <a href="/tos">Terms of Service</a> <a href="/privacy">Privacy Policy</a> </nav> </footer> </div> <footer id='noscript-footer'> <p>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer>

本文来自:Manjaro Linux Forum

感谢作者:Manjaro Linux Forum

查看原文:-Syu vs -Syuu vs -Syyu - Newbie Corner

51 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传