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.

2

4 Answers 4

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.

3
  • 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. Jul 16, 2012 at 17:23
  • Actually, not all games can be removed through the Software Center. Most especially, those installed through wine.
    – all4naija
    Jul 16, 2012 at 17:41
  • 3
    Wine games, however, are not installed in /usr.
    – user77111
    Jul 16, 2012 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-*.

0
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.

-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'.

7
  • 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? Jul 16, 2012 at 17:29
  • This does indeed have all the same problems as manually removing the files in the Terminal. Jul 16, 2012 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. Jul 16, 2012 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. Jul 16, 2012 at 17:39
  • 2
    Moving files to trash clears no disk space.
    – nanofarad
    Jul 16, 2012 at 17:45

Not the answer you're looking for? Browse other questions tagged .