TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The apt command: Combining apt-get and apt-cache and adds a progress bar (2014)

175 点作者 JelteF大约 9 年前

16 条评论

deelowe大约 9 年前
I've never understood why debian insists on having these be different commands. It would make sense if install, search, upgrade and uninstall were all discrete, but the way it is today feels half implemented.
评论 #11229936 未加载
评论 #11229944 未加载
评论 #11230200 未加载
评论 #11230039 未加载
评论 #11230064 未加载
评论 #11230646 未加载
jimrandomh大约 9 年前
There&#x27;s another thing about apt that&#x27;s bothered me: apt-cache search isn&#x27;t a very good search engine. Its most common use case is finding the exact name of some library&#x2F;framework package, ie, &quot;apt-cache search someframework&quot;. For common frameworks, this produces hundred of search results for packages that <i>use</i> the framework and mention this in their description, while the framework itself is in the list but very difficult to find. The --names-only flag fixes this, but it&#x27;s not the default so it&#x27;s one more thing to worry about.
评论 #11230056 未加载
robin__大约 9 年前
Will it take twice the amount of time with the progress bar enabled?
评论 #11230097 未加载
tetraodonpuffer大约 9 年前
also don&#x27;t forget apt-file (very useful to find out which package contains the library&#x2F;binary you want to install) and dpkg -L to figure out what a particular package installed on your system.<p>I switched to debian some time ago and it&#x27;s interesting so many different commands are used for package management, this said I personally have an alias ap=sudo aptitude -t jessie-backports alias and use that as a command line interface for search&#x2F;install, and run the full aptitude gui only when doing updates
评论 #11233599 未加载
enesunal大约 9 年前
v1.1: <a href="https:&#x2F;&#x2F;mvogt.wordpress.com&#x2F;2015&#x2F;11&#x2F;30&#x2F;apt-1-1-released&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mvogt.wordpress.com&#x2F;2015&#x2F;11&#x2F;30&#x2F;apt-1-1-released&#x2F;</a>
rcthompson大约 9 年前
I&#x27;ve already been using wajig for years now. It combines these two and about a dozen other utilities into one command.
评论 #11230173 未加载
esaym大约 9 年前
Wonder how it compares to aptitude? Used to be (10 years ago), aptitude was better and not orphaning packages on removal. Been using ever since..
ianlevesque大约 9 年前
Really cool. Somehow I had missed the introduction of this but it&#x27;s a friendlier interface and already on my Ubuntu systems.
评论 #11229869 未加载
mixmastamyk大约 9 年前
If you&#x27;d like to try this right away (not have to wait) on any version of Debian&#x2F;Ubuntu (just need pip) try this script I wrote several years ago:<p><a href="https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;apt-wrapper&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.python.org&#x2F;pypi&#x2F;apt-wrapper&#x2F;</a><p>No prog bar but it handles all common tasks, ppa&#x27;s, and elevates with sudo automatically. For example:<p><pre><code> &gt; pip install apt-wrapper &gt; apt in foobar</code></pre>
vmorgulis大约 9 年前
Here is my &quot;apt-upgrade.sh&quot;<p><pre><code> apt-get -y update apt-get -y upgrade apt-get -y dist-upgrade apt-get -y autoremove </code></pre> I run that everyday.
评论 #11230587 未加载
评论 #11230599 未加载
评论 #11230933 未加载
评论 #11230620 未加载
评论 #11230840 未加载
lobster_johnson大约 9 年前
I love this, but its terminal magic isn&#x27;t working properly for me. &quot;apt install stuff&quot; places a progress bar at the moment, then prints some misaligned stuff and then finally manages to clear the screen (!).<p>Any terminal settings I need to adjust? I&#x27;m using OS X&#x27;s Terminal.app, terminal declared as xterm-256color, via SSH, under zsh.
mikelward大约 9 年前
Why not just alias apt=aptitude?
评论 #11229928 未加载
评论 #11229910 未加载
HeadlessChild大约 9 年前
I had no idea about this and I maintain (only) Debian and Ubuntu based clients everyday..
Drdrdrq大约 9 年前
Is this installed by default on Debian? If not, then this is a deal-breaker for me. I might as well install aptitude which also provides a similar command line interface.
评论 #11229967 未加载
0x006A大约 9 年前
i like the recent changes in debian. finally most of the use cases are covered
yahyaheee大约 9 年前
Finally! why has this taken so long? Common sense people