Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there, I was hoping someone could help me ,first I need to know if its possible to add files like a yum repo without logging in to xwindows, the reason is I received a server cd of a redhat distro & believe it or not it doesnt have any xwindows like kde or xfce4 etc, I do get to login but I cant use "startx" to login no XWindows but it has yum ,so I was hoping that there might be a way to add some repositories to /etc/yum/sources.list & other files. it does already have 1 repo I can use by default but it doesnt have any of the packages im after. I also tried using wget to add some packages but I had problems getting the right url to add etc, AnyWay is it possible to add files through command line when a person doesnt have xwindows, I do have root priveledges though, Thanks AnyBody. -Browser
G'Day comprookie, Thanks for the reply. Just wondering if you could allaborate on the command you gave in your post in regards to what its for as I haven't had much experience in what you explained, my main objective is to add a repository like dag or dries etc to yum in sources.list or how to add a package from a web site ,but finding an explanation on how to add a file etc to a directory could also help to start somewhere,I have tried googling all over the place but cant get anywhere as I also cant think what search term to use that might lead me somewhere,if you know what I mean , sorry to be a pain?
G'Day again I just found a post in ubuntu site that showed me how to actually get nano working using this command "sudo nano -w /etc/yum/sources.list" but its empty ,I am not sure if its meant to be but at least its something to start on any other help would be greatly appreciated
No problem,now bear in mind I'm no expert but you should be able to check it out.Do this as a user not root,we are just going to play.Log in as a regular user and;
Code:
cd
touch test
echo test > test
cat test
what we did was create a file test in our home dir.(touch test)then we added test to the file(echo test > test)then to look at the file (cat test)
now to remove the file
Bewdy Mate, Got it that time, I have gained some good insight from your post & thanks for the lead with nano just what I needed as well, I was really stuck , & was running out of ideas, Thanks Again
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.