The Ubuntu community has contributed 13882 ideas, 66434 comments, 1286163 votes
Idea
#5119: apt-get autoremove command completion
|
| |
53
|
|
|
Written by rumli the 19 Mar 08 at 14:07.
Category: Installation.
Related to:
Nothing/Others.
Status: New
|
|
|
Description
We have command completion for "apt-get remove", but not yet for "apt-get autoremove" (which I use more that "apt-get remove"). Should be easy to fix since it should have the same behavior as "apt-get remove".
Clarification: I am talking about completing the package name, not the word "autoremove". For example, when Bob types "sudo apt-get autoremove firef" and then presses TAB, the command should complete the "firef" to "firefox".
Tags:
(none)
Attachments
No attachments.
Duplicates
Comments
|
forteller wrote on the 19 Mar 08 at 15:21
| |
In my installation of Hardy Heron (Ubuntu 8.04) Alpha there is auto completion of apt-get autoremove.
|
|
XVIIarcano wrote on the 19 Mar 08 at 16:16
| |
I don't have ubuntu in front of me but AFAIK apt-get auto... still has options (autoclean and autoremove if I remembre well). Completion after apt-get autor... should be there. Again, I cannot check right now.
|
|
wolfwitch wrote on the 19 Mar 08 at 16:28
| |
Works fine for me in Gutsy, unless I'm reading this wrong.
|
|
rumli wrote on the 19 Mar 08 at 18:19
| |
Sorry to cause confusion. What I meant was that it should complete the package name, not the word "autoremove". I have updated the description accordingly.
|
|
adityakavoor wrote on the 19 Mar 08 at 19:38
| |
package name is completed. WOrking fine. -1 from my side.
|
|
px33 wrote on the 19 Mar 08 at 20:14
|
It is. Uncomment
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
in /etc/bash.bashrc
|
|
rumli wrote on the 19 Mar 08 at 20:30
|
No, it doesn't work, at least on Gutsy. I have regular command-completion working. I'm talking about completing the package name. Try it out...
type in
sudo apt-get autoremove firef
and press TAB... notice that it does not complete it to "firefox"
This works fine with
sudo apt-get remove firef
|
|
Data83 wrote on the 19 Mar 08 at 23:43
| |
I am not 100% sure but as far as I recall apt-get autoremove does not have further arguments. E.g. apt-get autoremove firefox makes no sense. You run this command only have it look for obsolete packages and remove them. Specifying a package does not make any sense...
|
|
jmmL wrote on the 19 Mar 08 at 23:50
| |
Although i haven't been using ubuntu (or any linux distro) for long, as i understand it autoremove works in the way described by Data83...
|
|
neon wrote on the 20 Mar 08 at 05:03
| |
I'm in the same boat as Data83 abd jimmL.
|
Post your comment
|
|
|