Skip to main content

Thread: How to delete directory after git clone


hello,




i quite new ubuntu. have couple of beginner questions;
  1. i have checked out source code in directory, not inside home directory, using:
    code:
    git clone git://git.videolan.org/ffmpeg.git ffmpeg-git

    i moved folder around (was not in right directory), , delete , start scratch. how can without creating issues git? (i don't see ffmpeg-git in synaptic)

  2. more generally, best way delete old folders related obsolete or malfunctioning software, or unsuccessful attempts @ installing software ? can 'delete' in file manager? or sudo rm <folder name> ? or there hidden issues?

  3. another related question: when manually installing packages not available in synaptic, example, downloaded tar.gz, recommended directory structure. example, better use, example:
    /home/<program name>/source unpack source code
    /home/<program name>/build build software?
    as opposed using folders in root directory? there tutorial on subject of best practice directory structure?
thanks

quote posted marcjn view post
[*]i have checked out source code in directory, not inside home directory, using:
code:
git clone git://git.videolan.org/ffmpeg.git ffmpeg-git

i moved folder around (was not in right directory), , delete , start scratch. how can without creating issues git? (i don't see ffmpeg-git in synaptic)
just delete ffmpeg-git directory. won't create issues git because each cloned directory contains it's own git information.

quote posted marcjn view post
[*]more generally, best way delete old folders related obsolete or malfunctioning software, or unsuccessful attempts @ installing software ? can 'delete' in file manager? or sudo rm <folder name> ? or there hidden issues?
it depends on how installed or attempted install compiled software. if used sudo make install, should keep directory until want remove software. once ready uninstall run sudo make uninstall, , can delete directory either in file manager or rm.

if used checkinstall or method integrate software package management system, can delete source directory whenever want because synaptic/apt/aptitude know of installed files are.

quote posted marcjn view post
[*]another related question: when manually installing packages not available in synaptic, example, downloaded tar.gz, recommended directory structure. example, better use, example:
/home/<program name>/source unpack source code
/home/<program name>/build build software?
as opposed using folders in root directory? there tutorial on subject of best practice directory structure?[/list]thanks
i don't think there rules this. whatever comfortable you. example, on 1 distro place them in build directory such as:
code:
~/builds/<program name>
...but on 1 (a virtual machine testing) use:
code:
~/<program name>
note ~ equivalent of user's home directory, such /home/marcjn.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] How to delete directory after git clone


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support