Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm seeing various instructions that request that you install something like:

apt-get install lamp-server^

With the oddball caret in the command. This isn't anything I know from bash, and it doesn't seem to be mentioned in apt-get manual. What's the deal ?

share|improve this question

2 Answers 2

The ^ character is not a typo. If you remove it, apt-get will complain that the package cannot be found.

This article and its comments describe what the caret does:

Well, the answer is that the caret symbol is a short form for performing a task that otherwise the program “tasksel” would have done with the given package name. tasksel is a program to ease the installation of commonly used things that go together for a particular use.

share|improve this answer
    
Learn something new every day. –  coteyr Nov 5 '12 at 0:13

Lekensteyn's answer is correct,

The ^ symbol is used to replace tasksel (a tool that was/is used to install common sets of packages).

By doing

apt-get install lamp-server^

You are actually running installing a set of packages that would have been installed via the command:

tasksel lamp-server

Sorry for the confusion the bash explanation may have caused.

share|improve this answer
    
This is not correct. The apt-get command would error out on unrecognized names. –  Lekensteyn Nov 4 '12 at 21:52
    
I stand corrected, it does appear that it has been used in apt-get to replace tasksel as you mentioned. I will update my answer. –  coteyr Nov 5 '12 at 0:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.