How to start over with a clean gems install for jekyll?












0














I've been working on a blog using Jekyll so I installed Ruby with this command from the Jekyll doc:



sudo apt-get install ruby ruby-dev build-essential


Then I installed the gems directory to my home folder. I tried out a lot of different themes and just run bundle install when my terminal said I was missing any dependencies. Now I have a lot of packages installed inside the gems folder. Is there a way for me remove unnecessary gems and start over without uninstall gems?










share|improve this question


















  • 1




    Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
    – David Jacquel
    Nov 21 at 7:27










  • Can you post the full backtrace errors you got? But also see answer I've posted.
    – lacostenycoder
    Nov 21 at 8:37
















0














I've been working on a blog using Jekyll so I installed Ruby with this command from the Jekyll doc:



sudo apt-get install ruby ruby-dev build-essential


Then I installed the gems directory to my home folder. I tried out a lot of different themes and just run bundle install when my terminal said I was missing any dependencies. Now I have a lot of packages installed inside the gems folder. Is there a way for me remove unnecessary gems and start over without uninstall gems?










share|improve this question


















  • 1




    Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
    – David Jacquel
    Nov 21 at 7:27










  • Can you post the full backtrace errors you got? But also see answer I've posted.
    – lacostenycoder
    Nov 21 at 8:37














0












0








0







I've been working on a blog using Jekyll so I installed Ruby with this command from the Jekyll doc:



sudo apt-get install ruby ruby-dev build-essential


Then I installed the gems directory to my home folder. I tried out a lot of different themes and just run bundle install when my terminal said I was missing any dependencies. Now I have a lot of packages installed inside the gems folder. Is there a way for me remove unnecessary gems and start over without uninstall gems?










share|improve this question













I've been working on a blog using Jekyll so I installed Ruby with this command from the Jekyll doc:



sudo apt-get install ruby ruby-dev build-essential


Then I installed the gems directory to my home folder. I tried out a lot of different themes and just run bundle install when my terminal said I was missing any dependencies. Now I have a lot of packages installed inside the gems folder. Is there a way for me remove unnecessary gems and start over without uninstall gems?







ruby jekyll






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 0:34









Kingle

587




587








  • 1




    Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
    – David Jacquel
    Nov 21 at 7:27










  • Can you post the full backtrace errors you got? But also see answer I've posted.
    – lacostenycoder
    Nov 21 at 8:37














  • 1




    Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
    – David Jacquel
    Nov 21 at 7:27










  • Can you post the full backtrace errors you got? But also see answer I've posted.
    – lacostenycoder
    Nov 21 at 8:37








1




1




Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
– David Jacquel
Nov 21 at 7:27




Simply delete them from file explorer or with a rm -rf ~/path/to/gems/*. If you're starting to develop with ruby, you definitely have to look at rbenv which allows you to easily run any ruby version you want.
– David Jacquel
Nov 21 at 7:27












Can you post the full backtrace errors you got? But also see answer I've posted.
– lacostenycoder
Nov 21 at 8:37




Can you post the full backtrace errors you got? But also see answer I've posted.
– lacostenycoder
Nov 21 at 8:37












2 Answers
2






active

oldest

votes


















1














It is highly recommend to not use system ruby but use a ruby version manager. One reason is that you won't have to use sudo before your gem commands.



If you want to remove all your current gems you should be able to just do



gem uninstall --all


But you might need to prepend it with sudo gem uninstall --all



If you intend to do any longer term work / multiple projects with ruby, I recommend using RVM. You can find detailed install instructions here



Some prefer rbenv however it's install instructions seem to be focused on MacOS, so if you're on linux, I dunno.






share|improve this answer

















  • 1




    Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
    – Kingle
    Nov 21 at 18:30










  • @Kingle I highly recommend using RVM. It will make your life easier.
    – lacostenycoder
    Nov 21 at 20:34



















2














You can just run:



gem uninstall [gemname]


to remove them one at a time.






share|improve this answer























  • this answer made me say to myself... "ain't nobody got time for that!"
    – lacostenycoder
    Nov 21 at 8:37











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403684%2fhow-to-start-over-with-a-clean-gems-install-for-jekyll%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














It is highly recommend to not use system ruby but use a ruby version manager. One reason is that you won't have to use sudo before your gem commands.



If you want to remove all your current gems you should be able to just do



gem uninstall --all


But you might need to prepend it with sudo gem uninstall --all



If you intend to do any longer term work / multiple projects with ruby, I recommend using RVM. You can find detailed install instructions here



Some prefer rbenv however it's install instructions seem to be focused on MacOS, so if you're on linux, I dunno.






share|improve this answer

















  • 1




    Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
    – Kingle
    Nov 21 at 18:30










  • @Kingle I highly recommend using RVM. It will make your life easier.
    – lacostenycoder
    Nov 21 at 20:34
















1














It is highly recommend to not use system ruby but use a ruby version manager. One reason is that you won't have to use sudo before your gem commands.



If you want to remove all your current gems you should be able to just do



gem uninstall --all


But you might need to prepend it with sudo gem uninstall --all



If you intend to do any longer term work / multiple projects with ruby, I recommend using RVM. You can find detailed install instructions here



Some prefer rbenv however it's install instructions seem to be focused on MacOS, so if you're on linux, I dunno.






share|improve this answer

















  • 1




    Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
    – Kingle
    Nov 21 at 18:30










  • @Kingle I highly recommend using RVM. It will make your life easier.
    – lacostenycoder
    Nov 21 at 20:34














1












1








1






It is highly recommend to not use system ruby but use a ruby version manager. One reason is that you won't have to use sudo before your gem commands.



If you want to remove all your current gems you should be able to just do



gem uninstall --all


But you might need to prepend it with sudo gem uninstall --all



If you intend to do any longer term work / multiple projects with ruby, I recommend using RVM. You can find detailed install instructions here



Some prefer rbenv however it's install instructions seem to be focused on MacOS, so if you're on linux, I dunno.






share|improve this answer












It is highly recommend to not use system ruby but use a ruby version manager. One reason is that you won't have to use sudo before your gem commands.



If you want to remove all your current gems you should be able to just do



gem uninstall --all


But you might need to prepend it with sudo gem uninstall --all



If you intend to do any longer term work / multiple projects with ruby, I recommend using RVM. You can find detailed install instructions here



Some prefer rbenv however it's install instructions seem to be focused on MacOS, so if you're on linux, I dunno.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 21 at 8:34









lacostenycoder

3,67311227




3,67311227








  • 1




    Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
    – Kingle
    Nov 21 at 18:30










  • @Kingle I highly recommend using RVM. It will make your life easier.
    – lacostenycoder
    Nov 21 at 20:34














  • 1




    Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
    – Kingle
    Nov 21 at 18:30










  • @Kingle I highly recommend using RVM. It will make your life easier.
    – lacostenycoder
    Nov 21 at 20:34








1




1




Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
– Kingle
Nov 21 at 18:30




Thank you. I intend to use ruby for my blog so I'll definitely check out RVM.
– Kingle
Nov 21 at 18:30












@Kingle I highly recommend using RVM. It will make your life easier.
– lacostenycoder
Nov 21 at 20:34




@Kingle I highly recommend using RVM. It will make your life easier.
– lacostenycoder
Nov 21 at 20:34













2














You can just run:



gem uninstall [gemname]


to remove them one at a time.






share|improve this answer























  • this answer made me say to myself... "ain't nobody got time for that!"
    – lacostenycoder
    Nov 21 at 8:37
















2














You can just run:



gem uninstall [gemname]


to remove them one at a time.






share|improve this answer























  • this answer made me say to myself... "ain't nobody got time for that!"
    – lacostenycoder
    Nov 21 at 8:37














2












2








2






You can just run:



gem uninstall [gemname]


to remove them one at a time.






share|improve this answer














You can just run:



gem uninstall [gemname]


to remove them one at a time.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 21 at 4:20









sawa

129k27196299




129k27196299










answered Nov 21 at 2:46









well-i-better-get-rolling

3,42932759




3,42932759












  • this answer made me say to myself... "ain't nobody got time for that!"
    – lacostenycoder
    Nov 21 at 8:37


















  • this answer made me say to myself... "ain't nobody got time for that!"
    – lacostenycoder
    Nov 21 at 8:37
















this answer made me say to myself... "ain't nobody got time for that!"
– lacostenycoder
Nov 21 at 8:37




this answer made me say to myself... "ain't nobody got time for that!"
– lacostenycoder
Nov 21 at 8:37


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53403684%2fhow-to-start-over-with-a-clean-gems-install-for-jekyll%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python