change apt-get install directory for gnmoe install on linux

Posted on 2011-10-19
Last Modified: 2012-08-13

I'm using a plug sever distribution of debian, and I want to be able to install gnome, so that I can then install vnc.

The plug server only has 512 MB of internal storage so I need to use the external usb flash drive to store the files & have mounted this as /usb

How do I change the default settings so that /usb/apt becomes the default folder rather than /var/cache etc etc

New to Linux so a little confused! - plus I've got to do everything through SSH at the moment.

Question by:bedsingar
    1 Comment
    LVL 31

    Accepted Solution

    ssh is fine.

    Do you think installing stuff on USB is such a good idea?

    Well there are many ways you could do this.

    You can create a symlink, which is like a short cut folder in windows.  So, your /var/cache is actually /usb/apt

    ln -s /var/cache /usb/apt

    Second:  During installation you have to give extra parameters like --prefix=...

    First way is preferable and easier.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now