Packages are removed when I use “apt-get install” with a hyphen after the package nameWhat'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?

How do I create uniquely male characters?

Simulate Bitwise Cyclic Tag

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

I see my dog run

Can a German sentence have two subjects?

What Brexit solution does the DUP want?

least quadratic residue under GRH: an EXPLICIT bound

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

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

N.B. ligature in Latex

Why was the small council so happy for Tyrion to become the Master of Coin?

Extreme, but not acceptable situation and I can't start the work tomorrow morning

Why Is Death Allowed In the Matrix?

Patience, young "Padovan"

What are these boxed doors outside store fronts in New York?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

cryptic clue: mammal sounds like relative consumer (8)

How is it possible for user's password to be changed after storage was encrypted? (on OS X, Android)

What is the white spray-pattern residue inside these Falcon Heavy nozzles?

What is GPS' 19 year rollover and does it present a cybersecurity issue?

Calculus Optimization - Point on graph closest to given point

Why is "Reports" in sentence down without "The"

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

Download, install and reboot computer at night if needed



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











  • @terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

    – Rinzwind
    Apr 17 '14 at 10:33

















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











  • @terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

    – Rinzwind
    Apr 17 '14 at 10:33













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 11 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











  • @terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

    – Rinzwind
    Apr 17 '14 at 10:33












  • 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











  • @terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

    – Rinzwind
    Apr 17 '14 at 10:33







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













@terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

– Rinzwind
Apr 17 '14 at 10:33





@terdon caret: askubuntu.com/questions/211912/whats-the-caret-mean-in-apt-get

– Rinzwind
Apr 17 '14 at 10:33










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

Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org