Packages are removed when I use “apt-get install” with a hyphen after the package nameWhat's the caret...

Can town administrative "code" overule state laws like those forbidding trespassing?

Download, install and reboot computer at night if needed

Why CLRS example on residual networks does not follows its formula?

Closed subgroups of abelian groups

Draw simple lines in Inkscape

A function which translates a sentence to title-case

Is it possible to make sharp wind that can cut stuff from afar?

What would happen to a modern skyscraper if it rains micro blackholes?

The use of multiple foreign keys on same column in SQL Server

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

cryptic clue: mammal sounds like relative consumer (8)

How is the relation "the smallest element is the same" reflexive?

How old can references or sources in a thesis be?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

how to create a data type and make it available in all Databases?

What typically incentivizes a professor to change jobs to a lower ranking university?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

What makes Graph invariants so useful/important?

Copenhagen passport control - US citizen

My colleague's body is amazing

I see my dog run



Packages are removed when I use “apt-get install” with a hyphen after the package name


What's the caret (^) mean in apt-get?apt-get install with '-' removes?Recovering an Ubuntu installation - Ubuntu eats itself after 'sudo apt-get install -f'Unable to install VLC on 12.04, have tried all the solutions posted on related questionsHow can I find out if there is actually a cuda-toolkit-6-0 or similar in the apt-get repository (it should exist, but apt-get doesnt see it)?Problems Installing CUDA on 14.04After removing a package, more packages are removedUsing “make” command not workingUnable to locate package / apt-get command not foundWhere can I find a list of packages that are default to a distribution?how to uninstall cuda package groups that was installed by a local .deb file using dpkg command?Why does apt-get install python3 with a trailing hyphen remove a lot of packages?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







15















In an attempt to install cuda, I copy-pasted some apt-get install packages. For unknown reasons the line that I got run in the end is the following:



sudo apt-get install libgtk2.0-


The result was that many packages got removed. Randomly picking a few:



libreoffice-*
python-*
xfce4-*


The list is huge. A considerable number of system parts have been uninstalled. Now this seems like a serious deviation from what I expect when I run apt-get install.



What is going on?










share|improve this question




















  • 2





    13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

    – Rinzwind
    Apr 17 '14 at 9:44











  • could be... but now is the time to install 14.04 :)

    – nass
    Apr 17 '14 at 9:52






  • 1





    @Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

    – nass
    Apr 17 '14 at 9:57











  • @Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

    – terdon
    Apr 17 '14 at 10:32






  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    23 mins ago


















15















In an attempt to install cuda, I copy-pasted some apt-get install packages. For unknown reasons the line that I got run in the end is the following:



sudo apt-get install libgtk2.0-


The result was that many packages got removed. Randomly picking a few:



libreoffice-*
python-*
xfce4-*


The list is huge. A considerable number of system parts have been uninstalled. Now this seems like a serious deviation from what I expect when I run apt-get install.



What is going on?










share|improve this question




















  • 2





    13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

    – Rinzwind
    Apr 17 '14 at 9:44











  • could be... but now is the time to install 14.04 :)

    – nass
    Apr 17 '14 at 9:52






  • 1





    @Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

    – nass
    Apr 17 '14 at 9:57











  • @Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

    – terdon
    Apr 17 '14 at 10:32






  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    23 mins ago














15












15








15


2






In an attempt to install cuda, I copy-pasted some apt-get install packages. For unknown reasons the line that I got run in the end is the following:



sudo apt-get install libgtk2.0-


The result was that many packages got removed. Randomly picking a few:



libreoffice-*
python-*
xfce4-*


The list is huge. A considerable number of system parts have been uninstalled. Now this seems like a serious deviation from what I expect when I run apt-get install.



What is going on?










share|improve this question
















In an attempt to install cuda, I copy-pasted some apt-get install packages. For unknown reasons the line that I got run in the end is the following:



sudo apt-get install libgtk2.0-


The result was that many packages got removed. Randomly picking a few:



libreoffice-*
python-*
xfce4-*


The list is huge. A considerable number of system parts have been uninstalled. Now this seems like a serious deviation from what I expect when I run apt-get install.



What is going on?







command-line apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 20 mins ago









pomsky

33.2k11104136




33.2k11104136










asked Apr 17 '14 at 9:33









nassnass

74221131




74221131








  • 2





    13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

    – Rinzwind
    Apr 17 '14 at 9:44











  • could be... but now is the time to install 14.04 :)

    – nass
    Apr 17 '14 at 9:52






  • 1





    @Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

    – nass
    Apr 17 '14 at 9:57











  • @Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

    – terdon
    Apr 17 '14 at 10:32






  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    23 mins ago














  • 2





    13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

    – Rinzwind
    Apr 17 '14 at 9:44











  • could be... but now is the time to install 14.04 :)

    – nass
    Apr 17 '14 at 9:52






  • 1





    @Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

    – nass
    Apr 17 '14 at 9:57











  • @Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

    – terdon
    Apr 17 '14 at 10:32






  • 1





    Possible duplicate of apt-get install with '-' removes?

    – pomsky
    23 mins ago








2




2





13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

– Rinzwind
Apr 17 '14 at 9:44





13.04 is end of life so this is a good moment to install 13.10 ;-) There are special characters at the end of a package that invoke special actions (I know the ^ at the end invokes 'tasksel (sudo apt-get install lamp-server^)). The - I did not find yet (hard to search for :P ) but that could be something special too.

– Rinzwind
Apr 17 '14 at 9:44













could be... but now is the time to install 14.04 :)

– nass
Apr 17 '14 at 9:52





could be... but now is the time to install 14.04 :)

– nass
Apr 17 '14 at 9:52




1




1





@Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

– nass
Apr 17 '14 at 9:57





@Rinzwind all fun aside, - is a often used character, if it means anything remotely close to 'remove package' it should be handled with care. Let alone that when I say 'install' I SURELY don't mean 'uninstall' ...

– nass
Apr 17 '14 at 9:57













@Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

– terdon
Apr 17 '14 at 10:32





@Rinzwind AFAIK, the ^ just anchors the regex to the beginning of the string. Where do you get the taskel info? It's not mentioned in the man page. Good call on the - though, it is indeed a special character at the end of a package name.

– terdon
Apr 17 '14 at 10:32




1




1





Possible duplicate of apt-get install with '-' removes?

– pomsky
23 mins ago





Possible duplicate of apt-get install with '-' removes?

– pomsky
23 mins ago










2 Answers
2






active

oldest

votes


















21














The problem is the following (from man apt-get):




install



install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not
a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_0.9.12.1_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved
and installed. The /etc/apt/sources.list file is used to locate
the desired packages. If a hyphen is appended to the package
name (with no intervening space), the identified package will
be removed if it is installed
. Similarly a plus sign can be
used to designate a package to install. These latter features
may be used to override decisions made by apt-get's conflict resolution system.




So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:



Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'


In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.



So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.






share|improve this answer



















  • 1





    good find @terdon sometimes man trumps google :D

    – Rinzwind
    Apr 17 '14 at 10:36






  • 1





    This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

    – Kartik
    Apr 17 '14 at 11:54











  • @Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

    – terdon
    Apr 17 '14 at 11:56






  • 1





    @Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

    – musiKk
    Apr 17 '14 at 13:56






  • 3





    People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

    – terdon
    Apr 18 '14 at 0:48





















6














Take a look in /var/log/apt/history.log to see what exactly has been removed. Then, just reinstall these packages.






share|improve this answer



















  • 2





    Not exactly an answer, its a remedy!

    – jobin
    Apr 17 '14 at 11:08











  • @Jobin Fair point.

    – Jos
    Apr 17 '14 at 11:34











  • oh yes, this is quite a save :)

    – nass
    Apr 17 '14 at 15:05











  • great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

    – nass
    Apr 17 '14 at 21:47






  • 1





    @nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

    – Jos
    Apr 17 '14 at 22:54












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f448953%2fpackages-are-removed-when-i-use-apt-get-install-with-a-hyphen-after-the-packag%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









21














The problem is the following (from man apt-get):




install



install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not
a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_0.9.12.1_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved
and installed. The /etc/apt/sources.list file is used to locate
the desired packages. If a hyphen is appended to the package
name (with no intervening space), the identified package will
be removed if it is installed
. Similarly a plus sign can be
used to designate a package to install. These latter features
may be used to override decisions made by apt-get's conflict resolution system.




So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:



Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'


In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.



So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.






share|improve this answer



















  • 1





    good find @terdon sometimes man trumps google :D

    – Rinzwind
    Apr 17 '14 at 10:36






  • 1





    This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

    – Kartik
    Apr 17 '14 at 11:54











  • @Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

    – terdon
    Apr 17 '14 at 11:56






  • 1





    @Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

    – musiKk
    Apr 17 '14 at 13:56






  • 3





    People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

    – terdon
    Apr 18 '14 at 0:48


















21














The problem is the following (from man apt-get):




install



install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not
a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_0.9.12.1_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved
and installed. The /etc/apt/sources.list file is used to locate
the desired packages. If a hyphen is appended to the package
name (with no intervening space), the identified package will
be removed if it is installed
. Similarly a plus sign can be
used to designate a package to install. These latter features
may be used to override decisions made by apt-get's conflict resolution system.




So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:



Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'


In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.



So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.






share|improve this answer



















  • 1





    good find @terdon sometimes man trumps google :D

    – Rinzwind
    Apr 17 '14 at 10:36






  • 1





    This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

    – Kartik
    Apr 17 '14 at 11:54











  • @Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

    – terdon
    Apr 17 '14 at 11:56






  • 1





    @Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

    – musiKk
    Apr 17 '14 at 13:56






  • 3





    People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

    – terdon
    Apr 18 '14 at 0:48
















21












21








21







The problem is the following (from man apt-get):




install



install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not
a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_0.9.12.1_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved
and installed. The /etc/apt/sources.list file is used to locate
the desired packages. If a hyphen is appended to the package
name (with no intervening space), the identified package will
be removed if it is installed
. Similarly a plus sign can be
used to designate a package to install. These latter features
may be used to override decisions made by apt-get's conflict resolution system.




So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:



Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'


In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.



So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.






share|improve this answer













The problem is the following (from man apt-get):




install



install is followed by one or more packages desired for
installation or upgrading. Each package is a package name, not
a fully qualified filename (for instance, in a Debian system,
apt-utils would be the argument provided, not
apt-utils_0.9.12.1_amd64.deb). All packages required by the
package(s) specified for installation will also be retrieved
and installed. The /etc/apt/sources.list file is used to locate
the desired packages. If a hyphen is appended to the package
name (with no intervening space), the identified package will
be removed if it is installed
. Similarly a plus sign can be
used to designate a package to install. These latter features
may be used to override decisions made by apt-get's conflict resolution system.




So, adding a hyphen to the end of a package name means "remove that package". Specifically, in your case, it would remove these:



Note, selecting 'libgtk2.0-doc' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-bin' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-common' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-cil-dev' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-0-dbg' for regex 'libgtk2.0'
Note, selecting 'libgtk2.0-dev' for regex 'libgtk2.0'


In other words, you removed the entire gtk2 library set, and a lot of programs depend on gtk2. As a result, a lot of programs were removed.



So, no, this is not a bug. It is, admittedly, surprising behavior if you don't know about it but it is documented and intended.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 17 '14 at 9:59









terdonterdon

67.6k13139223




67.6k13139223








  • 1





    good find @terdon sometimes man trumps google :D

    – Rinzwind
    Apr 17 '14 at 10:36






  • 1





    This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

    – Kartik
    Apr 17 '14 at 11:54











  • @Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

    – terdon
    Apr 17 '14 at 11:56






  • 1





    @Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

    – musiKk
    Apr 17 '14 at 13:56






  • 3





    People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

    – terdon
    Apr 18 '14 at 0:48
















  • 1





    good find @terdon sometimes man trumps google :D

    – Rinzwind
    Apr 17 '14 at 10:36






  • 1





    This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

    – Kartik
    Apr 17 '14 at 11:54











  • @Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

    – terdon
    Apr 17 '14 at 11:56






  • 1





    @Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

    – musiKk
    Apr 17 '14 at 13:56






  • 3





    People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

    – terdon
    Apr 18 '14 at 0:48










1




1





good find @terdon sometimes man trumps google :D

– Rinzwind
Apr 17 '14 at 10:36





good find @terdon sometimes man trumps google :D

– Rinzwind
Apr 17 '14 at 10:36




1




1





This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

– Kartik
Apr 17 '14 at 11:54





This is not only suprising but also dangerous. One single character can destroy your computer! IMO, This should be removed and a seperate command should be made for it.

– Kartik
Apr 17 '14 at 11:54













@Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

– terdon
Apr 17 '14 at 11:56





@Kartik many single characters can destroy your computer. Consider, for example, rm -f /usr and rm -rf /usr :)

– terdon
Apr 17 '14 at 11:56




1




1





@Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

– musiKk
Apr 17 '14 at 13:56





@Kartik: Disagree. Yes, it is surprising but there is a prompt and if you blindly hit "y" when asked a question by the package management tool, that's a disaster waiting to happen. ALWAYS read this stuff or use a GUI tool.

– musiKk
Apr 17 '14 at 13:56




3




3





People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

– terdon
Apr 18 '14 at 0:48







People, you're barking up the wrong tree here. I didn't write the thing, I just read the man page. Please file your bugs with the apt devs. :P

– terdon
Apr 18 '14 at 0:48















6














Take a look in /var/log/apt/history.log to see what exactly has been removed. Then, just reinstall these packages.






share|improve this answer



















  • 2





    Not exactly an answer, its a remedy!

    – jobin
    Apr 17 '14 at 11:08











  • @Jobin Fair point.

    – Jos
    Apr 17 '14 at 11:34











  • oh yes, this is quite a save :)

    – nass
    Apr 17 '14 at 15:05











  • great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

    – nass
    Apr 17 '14 at 21:47






  • 1





    @nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

    – Jos
    Apr 17 '14 at 22:54
















6














Take a look in /var/log/apt/history.log to see what exactly has been removed. Then, just reinstall these packages.






share|improve this answer



















  • 2





    Not exactly an answer, its a remedy!

    – jobin
    Apr 17 '14 at 11:08











  • @Jobin Fair point.

    – Jos
    Apr 17 '14 at 11:34











  • oh yes, this is quite a save :)

    – nass
    Apr 17 '14 at 15:05











  • great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

    – nass
    Apr 17 '14 at 21:47






  • 1





    @nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

    – Jos
    Apr 17 '14 at 22:54














6












6








6







Take a look in /var/log/apt/history.log to see what exactly has been removed. Then, just reinstall these packages.






share|improve this answer













Take a look in /var/log/apt/history.log to see what exactly has been removed. Then, just reinstall these packages.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 17 '14 at 10:22









JosJos

14.7k54052




14.7k54052








  • 2





    Not exactly an answer, its a remedy!

    – jobin
    Apr 17 '14 at 11:08











  • @Jobin Fair point.

    – Jos
    Apr 17 '14 at 11:34











  • oh yes, this is quite a save :)

    – nass
    Apr 17 '14 at 15:05











  • great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

    – nass
    Apr 17 '14 at 21:47






  • 1





    @nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

    – Jos
    Apr 17 '14 at 22:54














  • 2





    Not exactly an answer, its a remedy!

    – jobin
    Apr 17 '14 at 11:08











  • @Jobin Fair point.

    – Jos
    Apr 17 '14 at 11:34











  • oh yes, this is quite a save :)

    – nass
    Apr 17 '14 at 15:05











  • great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

    – nass
    Apr 17 '14 at 21:47






  • 1





    @nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

    – Jos
    Apr 17 '14 at 22:54








2




2





Not exactly an answer, its a remedy!

– jobin
Apr 17 '14 at 11:08





Not exactly an answer, its a remedy!

– jobin
Apr 17 '14 at 11:08













@Jobin Fair point.

– Jos
Apr 17 '14 at 11:34





@Jobin Fair point.

– Jos
Apr 17 '14 at 11:34













oh yes, this is quite a save :)

– nass
Apr 17 '14 at 15:05





oh yes, this is quite a save :)

– nass
Apr 17 '14 at 15:05













great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

– nass
Apr 17 '14 at 21:47





great, the names of the packages are interleaved with a whole bunch of package versions.. it will be impossible to just re run the whole list effortlessly :(

– nass
Apr 17 '14 at 21:47




1




1





@nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

– Jos
Apr 17 '14 at 22:54





@nass It should be possible to write a script that strips off everything between parentheses etc. But that would be a whole new question.

– Jos
Apr 17 '14 at 22:54


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f448953%2fpackages-are-removed-when-i-use-apt-get-install-with-a-hyphen-after-the-packag%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...