2

I have filled my disk but can see games in /usr that I could delete but can't see how to do it. I am not a computer buff and have no idea what a terminal is.

Eliah Kagan
  • 117,780
  • 7
    you *should not just purge files in there*. uninstall packages that have games, do not purge random files. – Thomas Ward Jul 16 '12 at 17:39
  • 1
    Bumblebee should do the trick! https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac – Andrew Grimm Apr 19 '13 at 00:44

4 Answers4

6

Normally, it is advised to refrain from manipulating files in system folders by hand. Open Software Center, look for the games you want to get rid of and hit Remove.

  • 4
    This is especially true if you don't know what the files are for or what will break when you delete them! Software center is the way to go for managing what's installed. – ImaginaryRobots Jul 16 '12 at 17:23
  • Actually, not all games can be removed through the Software Center. Most especially, those installed through wine. – all4naija Jul 16 '12 at 17:41
  • 3
    Wine games, however, are not installed in /usr. –  Jul 16 '12 at 17:44
2

I do understand you are queasy about the terminal, but if no commands are mistyped, this will be quite easy. Wait for the something@somewhere ~$ prompt before typing the next command. Note that something and somewhere in the prompt may be different words--do not worry.

The default games installed are gnome-games. To remove them, open "Terminal" by searching it in the launcher, and type sudo apt-get remove gnome-games

It will prompt for a password, which will not be shown when typed(Not even *'s), and then will remove the package. If you are short on disk space, and do not use Libreoffice(An Open Source Office Suite), then you can remove all of Libreoffice from software center, or with sudo apt-get remove libreoffice-*.

Uri Herrera
  • 14,866
nanofarad
  • 20,717
2

The Terminal provides a text-based command-line interface and is very powerful and useful.

However, as Culumus007 has said, it may not be the best tool for this task. Graphical user interface tools like the Ubuntu Software Center or the Synaptic Package Manager make it easy to search through installed packages, figure out which ones you want to remove, and to remove them.

You can do the same thing from the command line, using commands like sudo apt-cache search ..., sudo apt-get remove ... (or sudo apt-get purge ...), and sudo apt-get autoremove (or sudo apt-get --purge autoremove).

What you should not do is to remove the files manually.

  • Even if the right files are removed, the system (specifically, the package manager) will still believe they're there, which can cause problems.
  • When a package is installed, its files are distributed throughout different subdirectories of /usr. It would be rather cumbersome and time consuming to find and delete them all manually, even if you worked from the lists of files provided by the packages you want to remove.
  • It's possible to remove the files manually, using either the Terminal or the file browser Nautilus. But for the reasons explained above, this is not a very good idea.
  • If the files are removed, launchers to them will malfunction instead of being also removed, unless the Unity Launcher entries are also removed manually, causing a difficult process.

I've posted this as community-wiki (easier for others to edit, and I get no rep from it) because there are already good answers, and this is more of a guide to them than a separate answer. But I didn't want to try to cram this information into comments.

Eliah Kagan
  • 117,780
-3
  1. CTRL+ALT+T to open terminal.

  2. Type gksu nautilus.

  3. Input your password and press ENTER key.

  4. Double-click on USR directory/folder to open it.

  5. Locate the game folder you intend to delete, right-click on it and select 'Move to Trash'.

all4naija
  • 1,554
  • This is exactly what I have said but using GUI instead of terminal. But they started down voting my answer. Should we down vote you? – Geppettvs D'Constanzo Jul 16 '12 at 17:29
  • This does indeed have all the same problems as manually removing the files in the Terminal. – Eliah Kagan Jul 16 '12 at 17:30
  • 1
    BTW I upvoted you as your answer, like mine, gives a true answer to the question. The user said: "How do I delete files from the /usr folder", not "I want to UNINSTALL games" which are different issues. – Geppettvs D'Constanzo Jul 16 '12 at 17:32
  • 2
    If you want such answers not to be downwoted, be sure to add a clear warning to them. The OP says he does not know what terminal is, so it's very likely he is not aware why it may be dangerous to mess up with files in /usr. Also, the OP is not the only one who reads this question, a lot of people may get here from Google or anything else, then they also should be warned about potential hazards, and a way to eliminate them (e.g. using USC). When helping others it is good to make sure they won't end up with greater problems then they already have, even if that's beyond the scope of question. – Rafał Cieślak Jul 16 '12 at 17:39
  • @GeppettvsD'Constanzo Uninstalling the software deletes the files. Doing it manually isn't just dangerous, but you're unlikely to find all the files. In effect, removing the packages does what the OP asked and attempting to remove the files manually doesn't. – Eliah Kagan Jul 16 '12 at 17:42
  • He doesn't know what terminal is but CTRL+ALT+T would do that just fine.However, this is the right way to remove the game files the original poster can see. It is clear and succint. – all4naija Jul 16 '12 at 17:44
  • 2
    Moving files to trash clears no disk space. – nanofarad Jul 16 '12 at 17:45